[CONFIGURATION]
* NEW: Support for GNU/Hurd. [INTERPRETER] * NEW: Support for GNU/Hurd. [GB.NET] * NEW: Support for GNU/Hurd. git-svn-id: svn://localhost/gambas/trunk@6847 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
232461ff81
commit
cb63d9ef1f
3 changed files with 19 additions and 4 deletions
|
@ -495,6 +495,7 @@ AC_DEFUN([GB_SYSTEM],
|
|||
*-*-darwin* | *-*-rhapsody* )
|
||||
SYSTEM=MACOSX
|
||||
AC_DEFINE(OS_BSD, 1, [Target system is of BSD family])
|
||||
AC_DEFINE(OS_FREEBSD, 1, [Target system is FreeBSD])
|
||||
AC_DEFINE(OS_MACOSX, 1, [Target system is MacOS X])
|
||||
AC_DEFINE(SYSTEM, "MacOSX", [Operating system])
|
||||
;;
|
||||
|
@ -510,6 +511,12 @@ AC_DEFUN([GB_SYSTEM],
|
|||
AC_DEFINE(OS_KFREEBSD, 1, [Target system is kFREEBSD])
|
||||
AC_DEFINE(SYSTEM, "kFreeBSD", [Operating system])
|
||||
;;
|
||||
*-gnu* )
|
||||
SYSTEM=HURD
|
||||
AC_DEFINE(OS_GNU, 1, [Target system is of GNU family])
|
||||
AC_DEFINE(OS_HURD, 1, [Target system is Hurd])
|
||||
AC_DEFINE(SYSTEM, "Hurd", [Operating system])
|
||||
;;
|
||||
* )
|
||||
SYSTEM=UNKNOWN
|
||||
AC_DEFINE(SYSTEM, "unknown", [Operating system])
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
#define TIOCOUTQ ((unsigned int) -1)
|
||||
#endif /* __CYGWIN__ */
|
||||
|
||||
#ifndef TIOCINQ
|
||||
#define TIOCINQ FIONREAD
|
||||
#endif
|
||||
|
||||
#include "main.h"
|
||||
#include "tools.h"
|
||||
|
||||
|
|
|
@ -53,10 +53,6 @@
|
|||
#include <sys/param.h>
|
||||
#include <limits.h>
|
||||
|
||||
#ifdef OS_MACOSX
|
||||
#define OS_FREEBSD
|
||||
#endif
|
||||
|
||||
#if defined(__GNU_LIBRARY__) || defined(OS_FREEBSD)
|
||||
|
||||
#include <getopt.h>
|
||||
|
@ -147,6 +143,14 @@ typedef
|
|||
#define LLONG_MAX 9223372036854775807LL
|
||||
#endif
|
||||
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX 4096
|
||||
#endif
|
||||
|
||||
#ifndef MAXPATHLEN
|
||||
#define MAXPATHLEN 4096
|
||||
#endif
|
||||
|
||||
#define CLEAR(s) (memset(s, 0, sizeof(*s)))
|
||||
|
||||
/* Workaround spurious gcc warnings */
|
||||
|
|
Loading…
Reference in a new issue