summaryrefslogtreecommitdiffstats
path: root/defines.h
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2011-05-05 08:06:59 +0200
committerTim Rice <tim@multitalents.net>2011-05-05 08:06:59 +0200
commit9abb697d4fd4fffe7961db0bebb133aacf69a759 (patch)
tree2ee0b3702f06683b8f4e10749ad4973ad486c91f /defines.h
parent - (tim) [configure.ac] Add AC_LANG_SOURCE to OPENSSH_CHECK_CFLAG_COMPILE (diff)
downloadopenssh-9abb697d4fd4fffe7961db0bebb133aacf69a759.tar.xz
openssh-9abb697d4fd4fffe7961db0bebb133aacf69a759.zip
- (tim) [defines.h] Deal with platforms that do not have S_IFSOCK ok djm@
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index b67cf467d..a435de76e 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
-/* $Id: defines.h,v 1.165 2011/05/05 01:19:15 djm Exp $ */
+/* $Id: defines.h,v 1.166 2011/05/05 06:06:59 tim Exp $ */
/* Constants */
@@ -131,6 +131,10 @@ enum
# define O_NONBLOCK 00004 /* Non Blocking Open */
#endif
+#ifndef S_IFSOCK
+# define S_IFSOCK 0
+#endif /* S_IFSOCK */
+
#ifndef S_ISDIR
# define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR))
#endif /* S_ISDIR */