*** ./glib/gatomic.c.ORIG Thu Feb 10 13:22:21 2011 --- ./glib/gatomic.c Thu Feb 10 13:22:36 2011 *************** *** 27,32 **** --- 27,33 ---- #include #endif + #include "glib.h" #include "gatomic.h" #include "gthreadprivate.h" *** ./gio/gsocket.c.ORIG Thu Feb 10 14:51:22 2011 --- ./gio/gsocket.c Thu Feb 10 14:51:44 2011 *************** *** 56,61 **** --- 56,65 ---- #include "gcredentials.h" #include "glibintl.h" + #if (defined(_AIX51) || defined(_AIX52)) && !(defined(_AIX53) || defined(_AIX61)) + #define ss_family __ss_family + #endif + /** * SECTION:gsocket * @short_description: Low-level socket object *** ./configure.ORIG Fri Nov 9 00:29:03 2012 --- ./configure Fri Nov 9 00:30:01 2012 *************** *** 23556,23573 **** fi done - # Check for high-resolution sleep functions - for ac_func in splice - do : - ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice" - if test "x$ac_cv_func_splice" = xyes; then : - cat >>confdefs.h <<_ACEOF - #define HAVE_SPLICE 1 - _ACEOF - - fi - done - for ac_func in prlimit do : ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit" --- 23556,23561 ---- *************** *** 26381,26386 **** --- 26369,26378 ---- *-*-cygwin*|*-*-darwin*) # skip cygwin and darwin -pthread or -pthreads test ;; + *-aix*) + G_THREAD_CFLAGS="-pthread -D_THREAD_SAFE" + G_THREAD_LIBS="-lpthread" + ;; *-solaris*) # These compiler/linker flags work with both Sun Studio and gcc # Sun Studio expands -mt to -D_REENTRANT and -lthread *** ./glib/gconstructor.h.ORIG Fri Nov 9 08:51:23 2012 --- ./glib/gconstructor.h Fri Nov 9 08:50:37 2012 *************** *** 62,68 **** static int _func ## _constructor(void) { atexit (_func); return 0; } \ __declspec(allocate(".CRT$XCU")) static int (* _array ## _func)(void) = _func ## _constructor; ! #elif defined(__SUNPRO_C) /* This is not tested, but i believe it should work, based on: * http://opensource.apple.com/source/OpenSSL098/OpenSSL098-35/src/fips/fips_premain.c --- 62,68 ---- static int _func ## _constructor(void) { atexit (_func); return 0; } \ __declspec(allocate(".CRT$XCU")) static int (* _array ## _func)(void) = _func ## _constructor; ! #elif defined(__SUNPRO_C) || defined(__VACPP_MULTI__) /* This is not tested, but i believe it should work, based on: * http://opensource.apple.com/source/OpenSSL098/OpenSSL098-35/src/fips/fips_premain.c *** ./glib/gatomic.c.ORIG Mon Nov 18 17:49:21 2013 --- ./glib/gatomic.c Mon Nov 18 17:50:17 2013 *************** *** 112,118 **** * Since: 2.4 **/ gint ! (g_atomic_int_get) (const volatile gint *atomic) { return g_atomic_int_get (atomic); } --- 112,118 ---- * Since: 2.4 **/ gint ! (g_atomic_int_get) (volatile gint *atomic) { return g_atomic_int_get (atomic); } *************** *** 317,325 **** * Since: 2.4 **/ gpointer ! (g_atomic_pointer_get) (const volatile void *atomic) { ! return g_atomic_pointer_get ((const volatile gpointer *) atomic); } /** --- 317,325 ---- * Since: 2.4 **/ gpointer ! (g_atomic_pointer_get) (volatile void *atomic) { ! return g_atomic_pointer_get ((volatile gpointer *) atomic); } /** *************** *** 528,534 **** * http://msdn.microsoft.com/en-us/library/ms684122(v=vs.85).aspx */ gint ! (g_atomic_int_get) (const volatile gint *atomic) { MemoryBarrier (); return *atomic; --- 528,534 ---- * http://msdn.microsoft.com/en-us/library/ms684122(v=vs.85).aspx */ gint ! (g_atomic_int_get) (volatile gint *atomic) { MemoryBarrier (); return *atomic; *************** *** 592,598 **** gpointer ! (g_atomic_pointer_get) (const volatile void *atomic) { const volatile gpointer *ptr = atomic; --- 592,598 ---- gpointer ! (g_atomic_pointer_get) (volatile void *atomic) { const volatile gpointer *ptr = atomic; *************** *** 683,689 **** static pthread_mutex_t g_atomic_lock = PTHREAD_MUTEX_INITIALIZER; gint ! (g_atomic_int_get) (const volatile gint *atomic) { gint value; --- 683,689 ---- static pthread_mutex_t g_atomic_lock = PTHREAD_MUTEX_INITIALIZER; gint ! (g_atomic_int_get) (volatile gint *atomic) { gint value; *************** *** 798,804 **** gpointer ! (g_atomic_pointer_get) (const volatile void *atomic) { const volatile gpointer *ptr = atomic; gpointer value; --- 798,804 ---- gpointer ! (g_atomic_pointer_get) (volatile void *atomic) { const volatile gpointer *ptr = atomic; gpointer value;