fdm: fix musl compile

musl does not define some macros so define them ourselves

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
This commit is contained in:
Dirk Neukirchen
2015-08-13 18:43:13 +02:00
parent ad39db848e
commit 65f803ee20
3 changed files with 46 additions and 0 deletions
@@ -0,0 +1,11 @@
--- a/file.c
+++ b/file.c
@@ -26,6 +26,8 @@
#include "fdm.h"
+#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
+
int mklock(u_int, const char *);
void rmlock(u_int, const char *);
int lockfd(u_int, int);