* configure.ac: grantpt is only available with -D_XOPEN_SOURCE

or -D_GNU_SOURCE under Linux.
This commit is contained in:
Andrew V. Samoilov 2004-09-03 22:37:52 +00:00
parent 9e27c8703a
commit bc432cb01e
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-09-04 Jakub Jelinek <jakub@redhat.com>
* configure.ac: grantpt is only available with -D_XOPEN_SOURCE
or -D_GNU_SOURCE under Linux.
2004-09-04 Pavel S. Shirshov <pavelsh@mail.ru>
* HACKING: Add to section "Programming Tips" g_free tip.

View File

@ -142,6 +142,9 @@ aux*)
LIBS="$LIBS -lposix"
AC_DEFINE(_POSIX_SOURCE)
;;
linux*)
AC_DEFINE(_GNU_SOURCE, 1, [Define to request GNU feature set on Linux])
;;
esac