Add a portable getpagesize() implementation

This commit is contained in:
Victor Zverovich
2014-09-12 13:53:52 -07:00
parent 1e9ca17b9d
commit 74169e4b5d
4 changed files with 42 additions and 1 deletions
+1
View File
@@ -45,6 +45,7 @@ typedef size_t size_t;
typedef ssize_t ssize_t;
int open(const char *path, int oflag, int mode);
int fstat(int fd, struct stat *buf);
long sysconf(int name);
#else
typedef unsigned size_t;
typedef int ssize_t;