[Gambas-user] Issue 595 in gambas: GNU support
gambas at ...2524...
gambas at ...2524...
Tue Jan 20 12:01:49 CET 2015
Comment #3 on issue 595 by costamag... at ...626...: GNU support
https://code.google.com/p/gambas/issues/detail?id=595
ok this is the patch that makes it build correctly.
Index: gambas3/acinclude.m4
===================================================================
--- gambas3.orig/acinclude.m4 2015-01-20 11:08:48.980209046 +0100
+++ gambas3/acinclude.m4 2015-01-20 11:08:48.980209046 +0100
@@ -510,6 +510,11 @@
AC_DEFINE(OS_KFREEBSD, 1, [Target system is kFREEBSD])
AC_DEFINE(SYSTEM, "kFreeBSD", [Operating system])
;;
+ *-gnu* )
+ SYSTEM=GNU
+ AC_DEFINE(OS_GNU, 1, [Target system is of GNU family])
+ AC_DEFINE(SYSTEM, "Hurd", [Operating system])
+ ;;
* )
SYSTEM=UNKNOWN
AC_DEFINE(SYSTEM, "unknown", [Operating system])
diff --git a/gb.net/src/CSerialPort.c b/gb.net/src/CSerialPort.c
index f8ac59d..93b3579 100644
--- a/gb.net/src/CSerialPort.c
+++ b/gb.net/src/CSerialPort.c
@@ -38,6 +38,10 @@
#define TIOCOUTQ ((unsigned int) -1)
#endif /* __CYGWIN__ */
+#ifndef TIOCINQ
+#define TIOCINQ FIONREAD
+#endif
+
#include "main.h"
#include "tools.h"
diff --git a/main/share/gb_common.h b/main/share/gb_common.h
index 69c38e2..6ae647c 100644
--- a/main/share/gb_common.h
+++ b/main/share/gb_common.h
@@ -84,6 +84,13 @@
#endif
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 4096
+#endif
+
#ifdef OS_SOLARIS
/* PGS: The following #define prevents /usr/include/sys/mman.h on solaris
do you think it can be included upstream?
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
More information about the User
mailing list