]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/semaphore.h
xnu-517.12.7.tar.gz
[apple/xnu.git] / bsd / sys / semaphore.h
index 16e0dfc5c5a560263c8fff50370fee7cf1d55399..7a5ea7ed42a6a4d3506d4074ff1f6288849c46fb 100644 (file)
@@ -40,6 +40,9 @@ typedef int sem_t;
 #define SEM_FAILED -1
 
 #ifndef KERNEL
+#include <sys/cdefs.h>
+
+__BEGIN_DECLS
 int sem_close(sem_t *);
 int sem_destroy(sem_t *);
 int sem_getvalue(sem_t *, int *);
@@ -49,6 +52,7 @@ int sem_post(sem_t *);
 int sem_trywait(sem_t *);
 int sem_unlink(const char *);
 int sem_wait(sem_t *);
+__END_DECLS
 
 #endif /* KERNEL */