[PATCH luit] configure: define XOPEN_SOURCE to 600 on linux

Peter Hutterer peter.hutterer at who-t.net
Sun Jan 13 15:44:30 PST 2013


posix_openpt() is only defined for 600 and higher.

sys.c: In function ‘allocatePty’:
sys.c:339:5: error: implicit declaration of function ‘posix_openpt’
[-Werror=implicit-function-declaration]
sys.c:339:5: warning: nested extern declaration of ‘posix_openpt’
[-Wnested-externs]

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index c214d85..67ef2c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,7 +62,7 @@ case $host_os in
     linux*)
         AC_CHECK_HEADERS([poll.h])
         AC_CHECK_FUNCS([poll])
-        OS_CFLAGS="-D_XOPEN_SOURCE=500"
+        OS_CFLAGS="-D_XOPEN_SOURCE=600"
         ;;
     *)
         AC_CHECK_HEADERS([poll.h])
-- 
1.8.1



More information about the xorg-devel mailing list