summaryrefslogtreecommitdiff
path: root/dtach.h
diff options
context:
space:
mode:
Diffstat (limited to 'dtach.h')
-rw-r--r--dtach.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/dtach.h b/dtach.h
index c7377df..0e6ba9c 100644
--- a/dtach.h
+++ b/dtach.h
@@ -73,6 +73,14 @@
#include <sys/socket.h>
#include <sys/un.h>
+#ifndef S_ISREG
+#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
+#endif
+
+#ifndef S_ISSOCK
+#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
+#endif
+
extern char *progname, *sockname;
extern int detach_char, no_suspend, redraw_method;
extern struct termios orig_term;