mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-22 04:01:17 +00:00
hopefully fix Fragman's compilation problems on Mandrake 6.1
This commit is contained in:
parent
41a62ccfc2
commit
2fc438ca13
3 changed files with 16 additions and 0 deletions
|
@ -97,5 +97,8 @@
|
||||||
/* Define this to something sane if you don't have stricmp */
|
/* Define this to something sane if you don't have stricmp */
|
||||||
#undef stricmp
|
#undef stricmp
|
||||||
|
|
||||||
|
/* Define this if fnmatch is prototyped in fnmatch.h */
|
||||||
|
#undef HAVE_FNMATCH_PROTO
|
||||||
|
|
||||||
@BOTTOM@
|
@BOTTOM@
|
||||||
#endif // _CONFIG_H
|
#endif // _CONFIG_H
|
||||||
|
|
|
@ -80,6 +80,15 @@ AC_HEADER_TIME
|
||||||
AC_STRUCT_TM
|
AC_STRUCT_TM
|
||||||
AC_C_BIGENDIAN
|
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_MSG_CHECKING(for socklen_t in sys/types.h)
|
||||||
AC_TRY_COMPILE(
|
AC_TRY_COMPILE(
|
||||||
[#include <sys/types.h>],
|
[#include <sys/types.h>],
|
||||||
|
|
|
@ -68,6 +68,10 @@
|
||||||
#endif
|
#endif
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
|
#ifndef HAVE_FNMATCH_PROTO
|
||||||
|
fnmatch (__const char *__pattern, __const char *__string, int __flags);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
extern qboolean is_server;
|
extern qboolean is_server;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue