summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-11-15 15:54:53 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-11-15 15:54:53 +0000
commitb7ca08e773b64e7b54354141e34d929f2d1bb9cc (patch)
treec6aa90689fe75a5a9bb14d57f804664a5411085f /include/sys
parent477041e79411085b2fbe625da0b046dfa65ed708 (diff)
- Remove linux-specific prototypes if asked to.
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/mman.h2
-rw-r--r--include/sys/sysinfo.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/include/sys/mman.h b/include/sys/mman.h
index 10471e683..7640955d7 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -157,11 +157,13 @@ extern int mincore (void *__start, size_t __len, unsigned char *__vec)
extern void *mremap (void *__addr, size_t __old_len, size_t __new_len,
int __flags, ...) __THROW;
+#ifdef __UCLIBC_LINUX_SPECIFIC__
/* Remap arbitrary pages of a shared backing store within an existing
VMA. */
extern int remap_file_pages (void *__start, size_t __size, int __prot,
size_t __pgoff, int __flags) __THROW;
#endif
+#endif
/* Open shared memory segment. */
diff --git a/include/sys/sysinfo.h b/include/sys/sysinfo.h
index 9fd4fa829..489f56b3b 100644
--- a/include/sys/sysinfo.h
+++ b/include/sys/sysinfo.h
@@ -48,7 +48,7 @@ __BEGIN_DECLS
/* Returns information on overall system statistics. */
extern int sysinfo (struct sysinfo *__info) __THROW;
-
+#if 0
/* Return number of configured processors. */
extern int get_nprocs_conf (void) __THROW;
@@ -61,6 +61,7 @@ extern long int get_phys_pages (void) __THROW;
/* Return number of available physical pages of memory in the system. */
extern long int get_avphys_pages (void) __THROW;
+#endif
__END_DECLS