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
wilder-portage
Michael Matz 26 years ago
parent 7553c7e626
commit d940c07848
  1. 4
      src/TEPty.C

@ -59,8 +59,8 @@
#include <config.h>
#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 <stdlib.h>

Loading…
Cancel
Save