]> arthur.barton.de Git - netatalk.git/commitdiff
Try to fix compile errors reported with redhat 7
authorbfernhomberg <bfernhomberg>
Sat, 20 Sep 2003 02:47:21 +0000 (02:47 +0000)
committerbfernhomberg <bfernhomberg>
Sat, 20 Sep 2003 02:47:21 +0000 (02:47 +0000)
etc/cnid_dbd/cnid_metad.c
etc/cnid_dbd/comm.c

index ed2532c8316487c57756a4272e63ee7ed42235fe..472bb6cc92fa1059da72ca6a4d6dcaac892f7ace 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: cnid_metad.c,v 1.1.4.1 2003-09-09 16:42:20 didg Exp $
+ * $Id: cnid_metad.c,v 1.1.4.2 2003-09-20 02:47:21 bfernhomberg Exp $
  *
  * Copyright (C) Joerg Lenneis 2003
  * All Rights Reserved.  See COPYRIGHT.
@@ -15,7 +15,9 @@
 #include <stdlib.h>
 
 #ifdef HAVE_UNISTD_H
+#define __USE_GNU
 #include <unistd.h>
+#undef __USE_GNU
 #endif /* HAVE_UNISTD_H */
 #include <sys/param.h>
 #include <errno.h>
@@ -30,6 +32,9 @@
 #ifdef HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif
+#ifdef HAVE_SYS_UIO_H
+#include <sys/uio.h>
+#endif
 #include <sys/un.h>
 #include <sys/socket.h>
 #include <stdio.h>
index b343ffee0c7561cca0a4abcc3ef651adbeea0028..647b9628561d4eedf1af9b2688c0b9ca04a0192a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: comm.c,v 1.1.4.1 2003-09-09 16:42:20 didg Exp $
+ * $Id: comm.c,v 1.1.4.2 2003-09-20 02:47:21 bfernhomberg Exp $
  *
  * Copyright (C) Joerg Lenneis 2003
  * All Rights Reserved.  See COPYRIGHT.
 #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif /* HAVE_SYS_TIME_H */
+#ifdef HAVE_SYS_UIO_H
+#include <sys/uio.h>
+#endif /* HAVE_SYS_UIO_H */
+
 
 #include <assert.h>
 #include <time.h>