Switch over to more modern unix sharedmemory API (requested by fatbob)
[umurmur.git] / src / sharedmemory.h
index 26001f75f94635623a05b8b3476e45a18a7c4032..fd9c1209b3ec8aac38c614cf7104c1d63698f797 100644 (file)
@@ -1,17 +1,22 @@
+#ifndef SHAREDMEMORY_H_777736932196\r
+#define SHAREDMEMORY_H_777736932196\r
+\r
 #include <stdlib.h>\r
 #include <string.h>\r
 \r
-#include <sys/shm.h>\r
+#include <fcntl.h> /* For O_* constants */ \r
+#include <unistd.h>\r
+#include <sys/mman.h>\r
 \r
 #include "util.h"\r
 #include "conf.h" \r
 #include "client.h"\r
 #include "channel.h"\r
-#include "sharedmemory_struct.h"\r
-\r
-int shmid;\r
-shm_t *shmptr; \r
+#include "sharedmemory_struct.h" \r
 \r
 void Sharedmemory_init(void);\r
 void Sharedmemory_update(void);\r
+void Sharedmemory_alivetick(void);\r
 void Sharedmemory_deinit(void);\r
+\r
+#endif // SHAREDMEMORY_H_777736932196
\ No newline at end of file