Switch over to more modern unix sharedmemory API (requested by fatbob)
[umurmur.git] / src / sharedmemory.h
index e4d44949fd3907a9aa3aced9b30fde2e9309c523..fd9c1209b3ec8aac38c614cf7104c1d63698f797 100644 (file)
@@ -4,19 +4,19 @@
 #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
+#endif // SHAREDMEMORY_H_777736932196
\ No newline at end of file