You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
659 B

Index: gup.h
--- gup.h.orig 2002-12-29 19:25:36 +0100
+++ gup.h 2005-10-15 08:56:19 +0200
@@ -3,6 +3,7 @@
#else
#define _XOPEN_SOURCE
#define _BSD_SOURCE
+#define _NETBSD_SOURCE
#endif
#include <stdlib.h>
@@ -13,6 +14,7 @@
#include <ctype.h> /* isspace */
#include <errno.h> /* Needed for errno */
#include <stdarg.h>
+#include <fcntl.h>
#include <sys/file.h>
#include <sys/stat.h> /* umask */
@@ -35,7 +37,7 @@
#define MAX_LINE_SIZE 512
#define MODEST_SIZE 128
-#ifdef FILE_LOCK
+#ifdef USE_DOTLOCK
#define LOCK_SLEEP 10 /* time to sleep between lock attempts*/
#define MAX_LOCK_SLEEP_COUNT 10 /* maximum number of tries */
#endif