Browse Source

- mark capset() as linux specific

Bernhard Reutner-Fischer 15 years ago
parent
commit
0c23badf50

+ 1 - 1
extra/Configs/Config.in

@@ -736,7 +736,7 @@ config UCLIBC_LINUX_SPECIFIC
 	bool "Linux specific functions"
 	default y
 	help
-	  capget(), fstatfs(), inotify_*(), ioperm(), iopl(),
+	  capget(), capset(), fstatfs(), inotify_*(), ioperm(), iopl(),
 	  madvise(), modify_ldt(), personality(), prctl()/arch_prctl(),
 	  ppoll(), readahead(), reboot(), remap_file_pages(),
 	  sched_getaffinity(), sched_setaffinity(), sendfile(),

+ 1 - 1
libc/sysdeps/linux/common/Makefile.in

@@ -30,7 +30,7 @@ endif
 
 ifneq ($(UCLIBC_LINUX_SPECIFIC),y)
 # we need these internally: fstatfs.c statfs.c
-CSRC := $(filter-out capget.c inotify.c ioperm.c iopl.c madvise.c \
+CSRC := $(filter-out capget.c capset.c inotify.c ioperm.c iopl.c madvise.c \
 	modify_ldt.c personality.c prctl.c readahead.c reboot.c \
 	remap_file_pages.c sched_getaffinity.c sched_setaffinity.c \
 	sendfile64.c sendfile.c setfsgid.c setfsuid.c setresuid.c \

+ 1 - 1
libc/sysdeps/linux/common/capset.c

@@ -11,7 +11,7 @@
 int capset(void *header, const void *data);
 #ifdef __NR_capset
 _syscall2(int, capset, void *, header, const void *, data)
-#else
+#elif defined __UCLIBC_HAS_STUBS__
 int capset(void *header, const void *data)
 {
 	__set_errno(ENOSYS);