OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
588e6bf
)
if __NR_swapon does not exist, dont try and create a syscall for it
author
Mike Frysinger
<vapier@gentoo.org>
Fri, 8 Dec 2006 18:53:12 +0000
(18:53 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Fri, 8 Dec 2006 18:53:12 +0000
(18:53 -0000)
libc/sysdeps/linux/common/swapon.c
patch
|
blob
|
history
diff --git
a/libc/sysdeps/linux/common/swapon.c
b/libc/sysdeps/linux/common/swapon.c
index
d5a5c23
..
f8c1e6a
100644
(file)
--- a/
libc/sysdeps/linux/common/swapon.c
+++ b/
libc/sysdeps/linux/common/swapon.c
@@
-8,5
+8,10
@@
*/
#include "syscalls.h"
+
+#ifdef __NR_swapon
+
#include <sys/swap.h>
_syscall2(int, swapon, const char *, path, int, swapflags);
+
+#endif