diff options
author | Matt Kraai <matt.kraai@amo.abbott.com> | 2012-12-18 14:03:55 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-12-19 19:00:00 -0800 |
commit | 40036bedb90aa25757c14a748a34a631c547e1d1 (patch) | |
tree | 54a79efa9f44c3b028a5d90b5f9c417e298cdbc8 /git-compat-util.h | |
parent | 9dacffc04009529b37c94de9a26420f640cf3f59 (diff) | |
download | git-40036bedb90aa25757c14a748a34a631c547e1d1.tar.gz |
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.h | 6 |
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 |