aboutsummaryrefslogtreecommitdiffstats
path: root/util/dotlock.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-05-23 12:29:05 +0000
committerWerner Koch <[email protected]>1999-05-23 12:29:05 +0000
commitc7447e78e2abb1298fecb9861fe420109c91f14f (patch)
treeb7a7954789898fc3cac24f43cbd0d32ec139f9f2 /util/dotlock.c
parentSee ChangeLog: Sat May 22 22:47:26 CEST 1999 Werner Koch (diff)
downloadgnupg-c7447e78e2abb1298fecb9861fe420109c91f14f.tar.gz
gnupg-c7447e78e2abb1298fecb9861fe420109c91f14f.zip
See ChangeLog: Sun May 23 14:20:22 CEST 1999 Werner Koch
Diffstat (limited to 'util/dotlock.c')
-rw-r--r--util/dotlock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/dotlock.c b/util/dotlock.c
index 213f0d38e..18841ec56 100644
--- a/util/dotlock.c
+++ b/util/dotlock.c
@@ -25,7 +25,9 @@
#include <ctype.h>
#include <errno.h>
#include <unistd.h>
+#ifndef HAVE_DOSISH_SYSTEM
#include <sys/utsname.h>
+#endif
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
@@ -71,7 +73,9 @@ create_dotlock( const char *file_to_lock )
DOTLOCK h;
int fd = -1;
char pidstr[16];
+ #ifndef HAVE_DOSISH_SYSTEM
struct utsname uts;
+ #endif
const char *nodename;
const char *dirpart;
int dirpartlen;