diff options
Diffstat (limited to 'util/dotlock.c')
-rw-r--r-- | util/dotlock.c | 4 |
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; |