hopefully fix Fragman's compilation problems on Mandrake 6.1

This commit is contained in:
Bill Currie 2000-11-01 06:31:29 +00:00
parent 41a62ccfc2
commit 2fc438ca13
3 changed files with 16 additions and 0 deletions

View file

@ -97,5 +97,8 @@
/* Define this to something sane if you don't have stricmp */
#undef stricmp
/* Define this if fnmatch is prototyped in fnmatch.h */
#undef HAVE_FNMATCH_PROTO
@BOTTOM@
#endif // _CONFIG_H

View file

@ -80,6 +80,15 @@ AC_HEADER_TIME
AC_STRUCT_TM
AC_C_BIGENDIAN
AC_MSG_CHECKING(that fnmatch is in fnmatch.h)
AC_TRY_COMPILE(
[#include <fnmatch.h>],
[int (*foo)() = fnmatch;],
AC_DEFINE(HAVE_FNMATCH_PROTO)
AC_MSG_RESULT(yes),
AC_MSG_RESULT(no)
)
AC_MSG_CHECKING(for socklen_t in sys/types.h)
AC_TRY_COMPILE(
[#include <sys/types.h>],

View file

@ -68,6 +68,10 @@
#endif
#include <limits.h>
#ifndef HAVE_FNMATCH_PROTO
fnmatch (__const char *__pattern, __const char *__string, int __flags);
#endif
extern qboolean is_server;