summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-03 10:28:26 -0800
committerJunio C Hamano <gitster@pobox.com>2013-01-03 10:28:33 -0800
commit8cabd200d2499954e47d8ec79ac7f4f45d9deb2e (patch)
treec8ddb29352e28899ad2b9e679fdbbae0695ddd94 /git-compat-util.h
parent324dfac8c990c38b1f8eb5a736be4e9e6b490e48 (diff)
parent40036bedb90aa25757c14a748a34a631c547e1d1 (diff)
downloadgit-8cabd200d2499954e47d8ec79ac7f4f45d9deb2e.tar.gz
Merge branch 'mk/qnx'
Port to QNX. * mk/qnx: Port to QNX Make lock local to fetch_pack
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 a88147b2dd..610e6b7ea4 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