From 8a0ee7c1db4796ba0dc1232245236a072afb1d0e Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 14 Apr 2016 06:06:59 +0000 Subject: [PATCH] Set correct preprocessor condition for when the content of file src/scandir_posix.c is necessary. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11603 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/scandir_posix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scandir_posix.c b/src/scandir_posix.c index af33612e2..ec0c84173 100644 --- a/src/scandir_posix.c +++ b/src/scandir_posix.c @@ -33,6 +33,8 @@ */ #include +#if defined(USE_X11) && !defined(HAVE_SCANDIR) + #ifndef HAVE_PTHREAD /* Switch system headers into POSIX.1-1990 mode */ # define _POSIX_SOURCE @@ -201,6 +203,8 @@ fl_scandir(const char *dir, struct dirent ***namelist, return result; } +#endif // defined(USE_X11) && !defined(HAVE_SCANDIR) + /* * End of "$Id$". */