]> granicus.if.org Git - mutt/commitdiff
Put the S_ISLNK definition into protos.h.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 7 Sep 1998 08:58:56 +0000 (08:58 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 7 Sep 1998 08:58:56 +0000 (08:58 +0000)
browser.c
mx.c
protos.h

index 01854efe296e4524a5e64526c804207e9ff1ba0d..88f38941bd119ae30a8c9586090ac06e61faf49a 100644 (file)
--- a/browser.c
+++ b/browser.c
 #include <pwd.h>
 #include <grp.h>
 
-/* HP-UX and ConvexOS don't have this macro */
-#ifndef S_ISLNK
-#define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK ? 1 : 0)
-#endif
-
 struct folder_file
 {
   mode_t mode;
diff --git a/mx.c b/mx.c
index 3e05a4f1d77615ead109e79970d3174ed4b687d2..ca1315e1c21e87ccbe6bda278df4b59a35efbcf1 100644 (file)
--- a/mx.c
+++ b/mx.c
 #include <utime.h>
 #endif
 
-/* HP-UX and ConvexOS don't have this macro */
-#ifndef S_ISLNK
-#define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK ? 1 : 0)
-#endif
 
 #define mutt_is_spool(s)  (strcmp (NONULL(Spoolfile), s) == 0)
 
index ad2583e2b02dee531feaa17a250a1a8684dca025..3f086e57fd7d24b90c9358675437490a60f2f959 100644 (file)
--- a/protos.h
+++ b/protos.h
@@ -323,6 +323,11 @@ void mutt_pattern_free (pattern_t **pat);
 #define DRAND (double)rand
 #endif /* HAVE_SRAND48 */
 
+/* HP-UX, ConvexOS and UNIXware don't have this macro */
+#ifndef S_ISLNK
+#define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK ? 1 : 0)
+#endif
+
 int getdnsdomainname (char *, size_t);
 
 /* According to SCO support, this is how to detect SCO */