From 5e2b328d98a0245660fd226551cb5f82034cc543 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Fri, 8 Apr 2005 01:24:46 +0000 Subject: [PATCH] Detect readdir_r(). git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1616 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/build/unix/build.config | 4 +++- sc2/build/unix/config_proginfo | 3 +++ sc2/src/config_unix.h.in | 3 +++ sc2/src/msvc++/config.h | 3 +++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/sc2/build/unix/build.config b/sc2/build/unix/build.config index 39cacdec4..623229d0b 100644 --- a/sc2/build/unix/build.config +++ b/sc2/build/unix/build.config @@ -35,7 +35,9 @@ uqm_requirements() have_library vorbisfile || exit 1 - # Add defines for HAVE_SETENV, HAVE_STRUPR and HAVE_STRICMP + # Add defines for HAVE_READDIR_R, HAVE_SETENV, HAVE_STRUPR + # and HAVE_STRICMP + define_have_symbol readdir_r define_have_symbol setenv define_have_symbol strupr define_have_symbol stricmp diff --git a/sc2/build/unix/config_proginfo b/sc2/build/unix/config_proginfo index b5d2719be..879ba4596 100644 --- a/sc2/build/unix/config_proginfo +++ b/sc2/build/unix/config_proginfo @@ -260,6 +260,9 @@ LIB_zlib_DEPEND_DETECT_BIN="pkgconfig" # Describe the symbols (possibly) used: # ############################################################################## +SYMBOL_readdir_r_EXTRA="#include +" + SYMBOL_wchar_t_EXTRA="#include " diff --git a/sc2/src/config_unix.h.in b/sc2/src/config_unix.h.in index 1aa9b7ad9..03dbf92ea 100644 --- a/sc2/src/config_unix.h.in +++ b/sc2/src/config_unix.h.in @@ -26,6 +26,9 @@ /* Defined if words are stored with the most significant byte first */ @WORDS_BIGENDIAN@ +/* Defined if your system has readdir_r of its own */ +@HAVE_READDIR_R@ + /* Defined if your system has setenv of its own */ @HAVE_SETENV@ diff --git a/sc2/src/msvc++/config.h b/sc2/src/msvc++/config.h index 200482cac..dd4271f93 100644 --- a/sc2/src/msvc++/config.h +++ b/sc2/src/msvc++/config.h @@ -27,6 +27,9 @@ /* Define if words are stored with the most significant byte first */ #undef WORDS_BIGENDIAN +/* Defined if your system has readdir_r of its own */ +#undef HAVE_READDIR_R + /* Defined if your system has setenv of its own */ #undef HAVE_SETENV