From: Thomas Roessler Date: Mon, 7 Sep 1998 08:58:56 +0000 (+0000) Subject: Put the S_ISLNK definition into protos.h. X-Git-Tag: mutt-0-94-6i-rel~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a9bbb7efd174f8cf57846da3e927ea2672d3bdb;p=mutt Put the S_ISLNK definition into protos.h. --- diff --git a/browser.c b/browser.c index 01854efe..88f38941 100644 --- a/browser.c +++ b/browser.c @@ -33,11 +33,6 @@ #include #include -/* 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 3e05a4f1..ca1315e1 100644 --- a/mx.c +++ b/mx.c @@ -54,10 +54,6 @@ #include #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) diff --git a/protos.h b/protos.h index ad2583e2..3f086e57 100644 --- 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 */