{"thread":{"id":"35592","subject":"[PATCH] Add MirBSD support to the build system.","startedAt":"2013-12-31T14:36:45Z","lastAt":"2013-12-31T14:36:45Z","messageCount":1,"participants":["Benny Siegert"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"232544","messageId":"Pine.BSM.4.64L.1312311431300.24632@herc.mirbsd.org","threadId":"35592","inReplyTo":null,"subject":"[PATCH] Add MirBSD support to the build system.","fromName":"Benny Siegert","fromEmail":"bsiegert@herc.mirbsd.org","sentAt":"2013-12-31T14:36:45Z","receivedAt":"2013-12-31T14:36:45Z","isPatch":true,"sender":{"key":"bsiegert@herc.mirbsd.org","avatar":null},"body":"Add an entry into the table of supported OSes. Do not set _XOPEN_SOURCE\n(contrary to OpenBSD) because that disables the u_short and u_long\ntypedefs, which are used unconditionally in various other header files.\n\nSigned-off-by: Benny Siegert <bsiegert@gmail.com>\n---\n config.mak.uname  | 7 +++++++\n git-compat-util.h | 2 +-\n 2 files changed, 8 insertions(+), 1 deletion(-)\n\ndiff --git a/config.mak.uname b/config.mak.uname\nindex 82d549e..7d31fad 100644\n--- a/config.mak.uname\n+++ b/config.mak.uname\n@@ -198,6 +198,13 @@ ifeq ($(uname_S),OpenBSD)\n \tBASIC_LDFLAGS += -L/usr/local/lib\n \tHAVE_PATHS_H = YesPlease\n endif\n+ifeq ($(uname_S),MirBSD)\n+\tNO_STRCASESTR = YesPlease\n+\tNO_MEMMEM = YesPlease\n+\tUSE_ST_TIMESPEC = YesPlease\n+\tNEEDS_LIBICONV = YesPlease\n+\tHAVE_PATHS_H = YesPlease\n+endif\n ifeq ($(uname_S),NetBSD)\n \tifeq ($(shell expr \"$(uname_R)\" : '[01]\\.'),2)\n \t\tNEEDS_LIBICONV = YesPlease\ndiff --git a/git-compat-util.h b/git-compat-util.h\nindex 7776f12..9e202dd 100644\n--- a/git-compat-util.h\n+++ b/git-compat-util.h\n@@ -75,7 +75,7 @@\n # endif\n #elif !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && \\\n       !defined(_M_UNIX) && !defined(__sgi) && !defined(__DragonFly__) && \\\n-      !defined(__TANDEM) && !defined(__QNX__)\n+      !defined(__TANDEM) && !defined(__QNX__) && !defined(__MirBSD__)\n #define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */\n #define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */\n #endif\n-- \n1.8.5.1\n"}]}