summaryrefslogtreecommitdiffstats
path: root/protos.h
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-09-07 08:58:56 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-09-07 08:58:56 +0000
commit6a9bbb7efd174f8cf57846da3e927ea2672d3bdb (patch)
treeb781289e65ffbe56e0fdc11851d8a6f1441cfb61 /protos.h
parentb52fa2e3aeb517440389232734dce3d234e97435 (diff)
Put the S_ISLNK definition into protos.h.
Diffstat (limited to 'protos.h')
-rw-r--r--protos.h5
1 files changed, 5 insertions, 0 deletions
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 */