From d940c07848c8c219c273c452b9607c8c0664a0a6 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sun, 24 Sep 2000 22:47:27 +0000 Subject: [PATCH] grantpt() and friends are XOPEN functionality, so: -#if defined(HAVE_GRANTPT) && defined(HAVE_PTSNAME) && defined(HAVE_UNLOCKPT) && !defined(_GNU_SOURCE) -#define _GNU_SOURCE // make stdlib.h offer the above fcts +#if defined(HAVE_GRANTPT) && defined(HAVE_PTSNAME) && defined(HAVE_UNLOCKPT) && !defined(_XOPEN_SOURCE) +#define _XOPEN_SOURCE // make stdlib.h offer the above fcts This prevents the random() clash from config.h (which I'm going to remove anyway) svn path=/trunk/kdebase/konsole/; revision=65092 --- src/TEPty.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TEPty.C b/src/TEPty.C index 774777b7..82b02862 100644 --- a/src/TEPty.C +++ b/src/TEPty.C @@ -59,8 +59,8 @@ #include #endif -#if defined(HAVE_GRANTPT) && defined(HAVE_PTSNAME) && defined(HAVE_UNLOCKPT) && !defined(_GNU_SOURCE) -#define _GNU_SOURCE // make stdlib.h offer the above fcts +#if defined(HAVE_GRANTPT) && defined(HAVE_PTSNAME) && defined(HAVE_UNLOCKPT) && !defined(_XOPEN_SOURCE) +#define _XOPEN_SOURCE // make stdlib.h offer the above fcts #endif #include