]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/quota.c
commenting changes, more autoconf support in afpd, etc
[netatalk.git] / etc / afpd / quota.c
index 1718d33ee7b15dd23676692f1290dac2b5768026..8f92111f2891950423412800d39da70bd2a3e3b1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: quota.c,v 1.5 2001-05-07 20:05:32 rufustfirefly Exp $
+ * $Id: quota.c,v 1.9 2001-06-20 18:33:04 rufustfirefly Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -7,7 +7,7 @@
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
+#endif /* HAVE_CONFIG_H */
 
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <sys/param.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif /* HAVE_UNISTD_H */
+#ifdef HAVE_FCNTL_H
 #include <fcntl.h>
+#endif /* HAVE_FCNTL_H */
 #include <syslog.h>
 
 #include <atalk/afp.h>
@@ -31,7 +35,7 @@ int quotactl(int cmd, const char *special, int id, caddr_t addr)
 {
   return syscall(__NR_quotactl, cmd, special, id, addr);
 }
-#endif
+#endif /* NEED_QUOTACTL_WRAPPER */
 
 
 #if defined(HAVE_SYS_MNTTAB_H) || defined(__svr4__)
@@ -105,7 +109,7 @@ special( file, nfs )
 }
 
 #else /* ultrix */
-#if defined(HAVE_MOUNT_H) || defined(BSD4_4) || defined(_IBMR2)
+#if (defined(HAVE_SYS_MOUNT_H) && !defined(__linux__)) || defined(BSD4_4) || defined(_IBMR2)
 
 static char *
 special( file, nfs )