1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

Fix finch build on 5.X on 64-bit platforms. Basically, rely on our

CFLAGS override to set _XOPEN_SOURCE_EXTENDED.

Reported by:	pointyhat via kris
This commit is contained in:
Joe Marcus Clarke 2007-08-16 06:29:34 +00:00
parent 0eb8bbcf03
commit 87dfa04fb5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197791
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- finch/libgnt/gntmain.c.orig 2007-08-16 02:18:26.000000000 -0400
+++ finch/libgnt/gntmain.c 2007-08-16 02:18:42.000000000 -0400
@@ -21,7 +21,7 @@
*/
#define _GNU_SOURCE
-#if defined(__APPLE__) || defined(__unix__)
+#if (defined(__APPLE__) || defined(__unix__)) && !defined(__FreeBSD__)
#define _XOPEN_SOURCE_EXTENDED
#endif

View File

@ -0,0 +1,11 @@
--- finch/libgnt/gntwm.c.orig 2007-08-16 02:19:22.000000000 -0400
+++ finch/libgnt/gntwm.c 2007-08-16 02:19:38.000000000 -0400
@@ -21,7 +21,7 @@
*/
#define _GNU_SOURCE
-#if defined(__APPLE__) || defined(__unix__)
+#if (defined(__APPLE__) || defined(__unix__)) && !defined(__FreeBSD__)
#define _XOPEN_SOURCE_EXTENDED
#endif