summaryrefslogtreecommitdiff
path: root/missing/nt.h
diff options
context:
space:
mode:
Diffstat (limited to 'missing/nt.h')
-rw-r--r--missing/nt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/missing/nt.h b/missing/nt.h
index cf9f4cb..70132b4 100644
--- a/missing/nt.h
+++ b/missing/nt.h
@@ -147,6 +147,7 @@ extern int NtMakeCmdVector(char *, char ***, int);
extern char *NtGetLib(void);
extern char *NtGetBin(void);
extern FILE *mypopen(char *, char *);
+extern int flock(int fd, int oper);
//
// define this so we can do inplace editing
@@ -190,6 +191,14 @@ extern char *mystrerror(int);
#define HAVE_WAITPID 1
#define HAVE_GETCWD 1
+#define LOCK_SH 1
+#define LOCK_EX 2
+#define LOCK_NB 4
+#define LOCK_UN 8
+#ifndef EWOULDBLOCK
+#define EWOULDBLOCK 10035 /* EBASEERR + 35 (winsock.h) */
+#endif
+
#ifdef popen
#undef popen
#define popen mypopen