move compatibility hooks for S_ISREG et al to conf.h
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Wed, 28 Apr 1993 08:24:31 +0000 (00:24 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Wed, 28 Apr 1993 08:24:31 +0000 (00:24 -0800)
SCCS-vsn: usr.sbin/sendmail/src/readcf.c 6.30
SCCS-vsn: usr.sbin/sendmail/src/conf.h 6.24

usr/src/usr.sbin/sendmail/src/conf.h
usr/src/usr.sbin/sendmail/src/readcf.c

index 35b09ff..94c9ac8 100644 (file)
@@ -5,7 +5,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)conf.h      6.23 (Berkeley) %G%
+ *     @(#)conf.h      6.24 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
 **  example, it includes some POSIX compatibility definitions
 */
 
 **  example, it includes some POSIX compatibility definitions
 */
 
+/* System 5 compatibility */
+#ifndef S_ISREG
+#define S_ISREG(foo)   ((foo & S_IFREG) == S_IFREG)
+#endif
+#ifndef S_IWGRP
+#define S_IWGRP                020
+#endif
+#ifndef S_IWOTH
+#define S_IWOTH                002
+#endif
+
 /*
 **  Older systems don't have this error code -- it should be in
 **  /usr/include/sysexits.h.
 /*
 **  Older systems don't have this error code -- it should be in
 **  /usr/include/sysexits.h.
index 87b3fca..48067ea 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)readcf.c   6.29 (Berkeley) %G%";
+static char sccsid[] = "@(#)readcf.c   6.30 (Berkeley) %G%";
 #endif /* not lint */
 
 # include "sendmail.h"
 #endif /* not lint */
 
 # include "sendmail.h"
@@ -17,17 +17,6 @@ static char sccsid[] = "@(#)readcf.c 6.29 (Berkeley) %G%";
 # include <resolv.h>
 #endif
 
 # include <resolv.h>
 #endif
 
-/* System 5 compatibility */
-#ifndef S_ISREG
-#define S_ISREG(foo)   ((foo & S_IFREG) == S_IFREG)
-#endif
-#ifndef S_IWGRP
-#define S_IWGRP                020
-#endif
-#ifndef S_IWOTH
-#define S_IWOTH                002
-#endif
-
 /*
 **  READCF -- read control file.
 **
 /*
 **  READCF -- read control file.
 **