diff options
author | reg <reg@FreeBSD.org> | 2000-02-13 02:59:51 +0800 |
---|---|---|
committer | reg <reg@FreeBSD.org> | 2000-02-13 02:59:51 +0800 |
commit | 40c1ad8fa8bb7785d6aafcd07873285409e2db55 (patch) | |
tree | 172d77f3624c29b06fb24a13644406f7a3ca7d9b /devel/glib12 | |
parent | 3a3cbfb35766aba19571b8d13fdbaf1f6cd2ad19 (diff) | |
download | freebsd-ports-gnome-40c1ad8fa8bb7785d6aafcd07873285409e2db55.tar.gz freebsd-ports-gnome-40c1ad8fa8bb7785d6aafcd07873285409e2db55.tar.zst freebsd-ports-gnome-40c1ad8fa8bb7785d6aafcd07873285409e2db55.zip |
Enable the use of poll() on -current.
Fix bad C++ define of NULL.
Approved by: maintainer
Diffstat (limited to 'devel/glib12')
-rw-r--r-- | devel/glib12/files/patch-ad | 7 | ||||
-rw-r--r-- | devel/glib12/files/patch-ae | 7 | ||||
-rw-r--r-- | devel/glib12/files/patch-af | 14 |
3 files changed, 24 insertions, 4 deletions
diff --git a/devel/glib12/files/patch-ad b/devel/glib12/files/patch-ad index 200a74992f87..29585871cb9e 100644 --- a/devel/glib12/files/patch-ad +++ b/devel/glib12/files/patch-ad @@ -37,7 +37,7 @@ esac LIBS_orig="$LIBS" LDFLAGS_orig="$LDFLAGS" -@@ -737,11 +743,14 @@ +@@ -737,11 +743,17 @@ G_THREAD_CFLAGS="$G_THREAD_CFLAGS -mthreads" fi ;; @@ -50,7 +50,10 @@ + if test x"$G_THREAD_LIBS" = x"-lc_r"; then + G_THREAD_CFLAGS="-D_THREAD_SAFE" + G_THREAD_LIBS="-pthread" -+ have_poll=no ++ case $host in ++ *-*-freebsd4*) ;; ++ default) have_poll=no ;; ++ esac + else + G_THREAD_CFLAGS="-D_THREAD_SAFE -DLINUXTHREADS" + fi diff --git a/devel/glib12/files/patch-ae b/devel/glib12/files/patch-ae index bb5061b59f99..49aa09418338 100644 --- a/devel/glib12/files/patch-ae +++ b/devel/glib12/files/patch-ae @@ -37,7 +37,7 @@ esac LIBS_orig="$LIBS" LDFLAGS_orig="$LDFLAGS" -@@ -5057,11 +5063,14 @@ +@@ -5057,11 +5063,17 @@ G_THREAD_CFLAGS="$G_THREAD_CFLAGS -mthreads" fi ;; @@ -50,7 +50,10 @@ + if test x"$G_THREAD_LIBS" = x"-lc_r"; then + G_THREAD_CFLAGS="-D_THREAD_SAFE" + G_THREAD_LIBS="-pthread" -+ have_poll=no ++ case $host in ++ *-*-freebsd4*) ;; ++ default) have_poll=no ;; ++ esac + else + G_THREAD_CFLAGS="-D_THREAD_SAFE -DLINUXTHREADS" + fi diff --git a/devel/glib12/files/patch-af b/devel/glib12/files/patch-af new file mode 100644 index 000000000000..2af9749e9775 --- /dev/null +++ b/devel/glib12/files/patch-af @@ -0,0 +1,14 @@ +--- glib.h.orig Sun Sep 5 23:34:07 1999 ++++ glib.h Thu Sep 16 01:32:54 1999 +@@ -108,7 +108,11 @@ + * defined then the current definition is correct. + */ + #ifndef NULL ++#ifdef __cplusplus ++#define NULL (0) ++#else + #define NULL ((void*) 0) ++#endif + #endif + + #ifndef FALSE |