projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d03b3e7
)
type exposure fixes in sys/sem.h
author
Rich Felker
<dalias@aerifal.cx>
Fri, 24 Aug 2012 21:01:17 +0000
(17:01 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 24 Aug 2012 21:01:17 +0000
(17:01 -0400)
include/sys/sem.h
patch
|
blob
|
history
diff --git
a/include/sys/sem.h
b/include/sys/sem.h
index 15d8b6857e23c70e75a12ebb59ecebd652b7ccd5..add3f1c8dc6638d772d95232c1e3a1dafbb05f29 100644
(file)
--- a/
include/sys/sem.h
+++ b/
include/sys/sem.h
@@
-5,6
+5,11
@@
extern "C" {
#endif
#define __NEED_size_t
+#define __NEED_pid_t
+#define __NEED_time_t
+#ifdef _GNU_SOURCE
+#define __NEED_struct_timespec
+#endif
#include <bits/alltypes.h>
#include <sys/ipc.h>
@@
-58,8
+63,6
@@
int semget(key_t, int, int);
int semop(int, struct sembuf *, size_t);
#ifdef _GNU_SOURCE
-#define __NEED_struct_timespec
-#include <bits/alltypes.h>
int semtimedop(int, struct sembuf *, size_t, const struct timespec *);
#endif