--- mc-4.6.0/configure.in.jj 2003-02-05 13:03:56.000000000 -0500 +++ mc-4.6.0/configure.in 2003-02-19 17:54:05.000000000 -0500 @@ -128,6 +128,9 @@ sco*) AC_DEFINE(SCO_FLAVOR, 1, [Define if you want to turn on SCO-specific code]) AC_DEFINE(_SVID3, 1, [Needs to be defined on SCO]) ;; +linux*) + AC_DEFINE(_GNU_SOURCE) + ;; esac --- mc-4.6.0/configure.jj 2003-02-05 13:09:04.000000000 -0500 +++ mc-4.6.0/configure 2003-02-19 17:54:42.000000000 -0500 @@ -8433,6 +8433,12 @@ cat >>confdefs.h <<\_ACEOF _ACEOF ;; +linux*) + cat >>confdefs.h <<\_ACEOF +#define _GNU_SOURCE 1 +_ACEOF + + ;; esac --- mc-4.6.0/config.h.in.jj 2003-02-05 13:09:02.000000000 -0500 +++ mc-4.6.0/config.h.in 2003-02-19 17:57:34.000000000 -0500 @@ -627,6 +627,10 @@ /* Define to 1 if you need to in order for `stat' and other things to work. */ #undef _POSIX_SOURCE +/* Define to 1 if you need to in order for `ptsname' and other things to be + declared. */ +#undef _GNU_SOURCE + /* Needs to be defined on SCO */ #undef _SVID3