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
This commit is contained in:
parent
7a580fd421
commit
8a0ee7c1db
@ -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$".
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user