Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/2d57934be8a46dadd5b149e66acc0477bea8b975
...commit
http://git.netsurf-browser.org/netsurf.git/commit/2d57934be8a46dadd5b149e66acc0477bea8b975
...tree
http://git.netsurf-browser.org/netsurf.git/tree/2d57934be8a46dadd5b149e66acc0477bea8b975
The branch, master has been updated
via 2d57934be8a46dadd5b149e66acc0477bea8b975 (commit)
via fbaa971ad00873a1684aef538aa6edbbed7e55ed (commit)
from 185d0343236afbd1d900339b45c02985bd2d4ecb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=2d57934be8a46dadd5b149e66acc0477bea8b975
commit 2d57934be8a46dadd5b149e66acc0477bea8b975
Author: Niclas Rosenvik <[email protected]>
Commit: Vincent Sanders <[email protected]>
fix compatability macros setup for NetBSD
diff --git a/utils/config.h b/utils/config.h
index d0ec21c..d3ec326 100644
--- a/utils/config.h
+++ b/utils/config.h
@@ -21,6 +21,13 @@
#include <stddef.h>
+#if defined(__NetBSD__)
+#include <sys/param.h>
+#if (defined(__NetBSD_Version__) && __NetBSD_Prereq__(8,0,0))
+#define NetBSD_v8
+#endif
+#endif
+
/* Try to detect which features the target OS supports */
#if (defined(_GNU_SOURCE) && \
@@ -38,6 +45,7 @@ char *strndup(const char *s, size_t n);
#if ((defined(_GNU_SOURCE) || \
defined(__APPLE__) || \
defined(__HAIKU__) || \
+ defined(__NetBSD__) || \
defined(__OpenBSD__)) && \
!defined(__serenity__))
#define HAVE_STRCASESTR
@@ -66,7 +74,9 @@ char *strcasestr(const char *haystack, const char *needle);
/* For some reason, UnixLib defines this unconditionally. Assume we're using
* UnixLib if building for RISC OS.
*/
-#if ((defined(_GNU_SOURCE) && !defined(__APPLE__)) || defined(__riscos__))
+#if ((defined(_GNU_SOURCE) && !defined(__APPLE__)) || \
+ defined(__riscos__) || \
+ defined(NetBSD_v8))
#define HAVE_STRCHRNUL
#else
#undef HAVE_STRCHRNUL
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=fbaa971ad00873a1684aef538aa6edbbed7e55ed
commit fbaa971ad00873a1684aef538aa6edbbed7e55ed
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>
make config detection macro more obvious
diff --git a/utils/config.h b/utils/config.h
index a87f19b..d0ec21c 100644
--- a/utils/config.h
+++ b/utils/config.h
@@ -49,7 +49,13 @@ char *strcasestr(const char *haystack, const char *needle);
/* Although these platforms might have strftime or strptime they
* appear not to support the time_t seconds format specifier.
*/
-#if (defined(_WIN32) || defined(__riscos__) || defined(__HAIKU__) ||
defined(__BEOS__) || defined(__amigaos4__) || defined(__AMIGA__) ||
defined(__MINT__))
+#if (defined(_WIN32) || \
+ defined(__riscos__) || \
+ defined(__HAIKU__) || \
+ defined(__BEOS__) || \
+ defined(__amigaos4__) || \
+ defined(__AMIGA__) || \
+ defined(__MINT__))
#undef HAVE_STRPTIME
#undef HAVE_STRFTIME
#else
-----------------------------------------------------------------------
Summary of changes:
utils/config.h | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/utils/config.h b/utils/config.h
index a87f19b..d3ec326 100644
--- a/utils/config.h
+++ b/utils/config.h
@@ -21,6 +21,13 @@
#include <stddef.h>
+#if defined(__NetBSD__)
+#include <sys/param.h>
+#if (defined(__NetBSD_Version__) && __NetBSD_Prereq__(8,0,0))
+#define NetBSD_v8
+#endif
+#endif
+
/* Try to detect which features the target OS supports */
#if (defined(_GNU_SOURCE) && \
@@ -38,6 +45,7 @@ char *strndup(const char *s, size_t n);
#if ((defined(_GNU_SOURCE) || \
defined(__APPLE__) || \
defined(__HAIKU__) || \
+ defined(__NetBSD__) || \
defined(__OpenBSD__)) && \
!defined(__serenity__))
#define HAVE_STRCASESTR
@@ -49,7 +57,13 @@ char *strcasestr(const char *haystack, const char *needle);
/* Although these platforms might have strftime or strptime they
* appear not to support the time_t seconds format specifier.
*/
-#if (defined(_WIN32) || defined(__riscos__) || defined(__HAIKU__) ||
defined(__BEOS__) || defined(__amigaos4__) || defined(__AMIGA__) ||
defined(__MINT__))
+#if (defined(_WIN32) || \
+ defined(__riscos__) || \
+ defined(__HAIKU__) || \
+ defined(__BEOS__) || \
+ defined(__amigaos4__) || \
+ defined(__AMIGA__) || \
+ defined(__MINT__))
#undef HAVE_STRPTIME
#undef HAVE_STRFTIME
#else
@@ -60,7 +74,9 @@ char *strcasestr(const char *haystack, const char *needle);
/* For some reason, UnixLib defines this unconditionally. Assume we're using
* UnixLib if building for RISC OS.
*/
-#if ((defined(_GNU_SOURCE) && !defined(__APPLE__)) || defined(__riscos__))
+#if ((defined(_GNU_SOURCE) && !defined(__APPLE__)) || \
+ defined(__riscos__) || \
+ defined(NetBSD_v8))
#define HAVE_STRCHRNUL
#else
#undef HAVE_STRCHRNUL
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org