aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-07-23 23:25:46 -0400
committerTest_User <hax@andrewyu.org>2024-07-23 23:25:46 -0400
commit36ffbf0e0d84b7361788316c46b2b60baf1962af (patch)
tree3e42cc4e2c715799c6ccfe16875d40ea0a2d549e
parent921f31231c4b88a4176b6b349d5b2fccca2b25fa (diff)
downloadhaxircd-36ffbf0e0d84b7361788316c46b2b60baf1962af.tar.gz
haxircd-36ffbf0e0d84b7361788316c46b2b60baf1962af.zip
Fix semaphore code
-rw-r--r--mutex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mutex.h b/mutex.h
index 651f0da..7eb89cf 100644
--- a/mutex.h
+++ b/mutex.h
@@ -86,6 +86,7 @@ inline void mutex_destroy(char *lock) {
#else
#include <semaphore.h>
+#include <errno.h>
#define MUTEX_TYPE sem_t