diff options
| author | Manolo Gouy <Manolo> | 2016-04-14 06:06:59 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-14 06:06:59 +0000 |
| commit | 8a0ee7c1db4796ba0dc1232245236a072afb1d0e (patch) | |
| tree | 9d4496aa63742f01c3cd4daf8b4a327cbe4f0eb1 | |
| parent | 7a580fd4216824a8fe4babf7295188d6112b3ab5 (diff) | |
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
| -rw-r--r-- | src/scandir_posix.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <config.h> +#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$". */ |
