diff --git a/libs/libedit/configure.ac b/libs/libedit/configure.ac index 96060376f7..ba1863065f 100644 --- a/libs/libedit/configure.ac +++ b/libs/libedit/configure.ac @@ -16,6 +16,8 @@ case $host in *-sun-*) AC_DEFINE([_SUNOS], [], [Solaris's term.h does horrid things.]);; esac +CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1" + # Checks for programs. AC_PROG_CXX AC_PROG_CC diff --git a/libs/libedit/configure.gnu b/libs/libedit/configure.gnu index d74000ec64..dd7048bd67 100644 --- a/libs/libedit/configure.gnu +++ b/libs/libedit/configure.gnu @@ -1,2 +1,2 @@ #! /bin/sh -./configure "$@" CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1" --disable-shared --with-pic +./configure "$@" --disable-shared --with-pic