summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorMatt Kraai <matt.kraai@amo.abbott.com>2012-12-18 22:03:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-12-20 03:00:00 (GMT)
commit40036bedb90aa25757c14a748a34a631c547e1d1 (patch)
tree54a79efa9f44c3b028a5d90b5f9c417e298cdbc8 /git-compat-util.h
parent9dacffc04009529b37c94de9a26420f640cf3f59 (diff)
downloadgit-40036bedb90aa25757c14a748a34a631c547e1d1.zip
git-40036bedb90aa25757c14a748a34a631c547e1d1.tar.gz
git-40036bedb90aa25757c14a748a34a631c547e1d1.tar.bz2
Port to QNX
Signed-off-by: Matt Kraai <matt.kraai@amo.abbott.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index a88147b..610e6b7 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -75,7 +75,7 @@
# endif
#elif !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && \
!defined(_M_UNIX) && !defined(__sgi) && !defined(__DragonFly__) && \
- !defined(__TANDEM)
+ !defined(__TANDEM) && !defined(__QNX__)
#define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */
#define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
#endif
@@ -413,6 +413,10 @@ void *gitmemmem(const void *haystack, size_t haystacklen,
const void *needle, size_t needlelen);
#endif
+#ifdef NO_GETPAGESIZE
+#define getpagesize() sysconf(_SC_PAGESIZE)
+#endif
+
#ifdef FREAD_READS_DIRECTORIES
#ifdef fopen
#undef fopen