summaryrefslogtreecommitdiff
path: root/misc-utils/mcookie.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc-utils/mcookie.c')
-rw-r--r--misc-utils/mcookie.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc-utils/mcookie.c b/misc-utils/mcookie.c
index e550bec6..dee26c56 100644
--- a/misc-utils/mcookie.c
+++ b/misc-utils/mcookie.c
@@ -28,7 +28,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include "md5.h"
-#if HAVE_GETTIMEOFDAY
+#ifdef HAVE_GETTIMEOFDAY
#include <sys/time.h>
#include <unistd.h>
#endif
@@ -79,7 +79,7 @@ int main( int argc, char **argv )
pid_t pid;
char *file = NULL;
int r;
-#if HAVE_GETTIMEOFDAY
+#ifdef HAVE_GETTIMEOFDAY
struct timeval tv;
struct timezone tz;
#else
@@ -98,7 +98,7 @@ int main( int argc, char **argv )
MD5Init( &ctx );
-#if HAVE_GETTIMEOFDAY
+#ifdef HAVE_GETTIMEOFDAY
gettimeofday( &tv, &tz );
MD5Update( &ctx, (unsigned char *)&tv, sizeof( tv ) );
#else