Fix OpenBSD compilation some more. (Fix by Han Boetes.)
authorKaroly Lorentey <lorentey@elte.hu>
Sat, 1 Apr 2006 12:54:10 +0000 (12:54 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Sat, 1 Apr 2006 12:54:10 +0000 (12:54 +0000)
* lib-src/emacsclient.c: Copy IS_*_SEP definitions from lisp.h.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-541

lib-src/emacsclient.c

index 237c398..870a39b 100644 (file)
@@ -45,6 +45,25 @@ Boston, MA 02110-1301, USA.  */
 #include <signal.h>
 #include <errno.h>
 
+/* From lisp.h */
+#ifndef DIRECTORY_SEP
+#define DIRECTORY_SEP '/'
+#endif
+#ifndef IS_DIRECTORY_SEP
+#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)
+#endif
+#ifndef IS_DEVICE_SEP
+#ifndef DEVICE_SEP
+#define IS_DEVICE_SEP(_c_) 0
+#else
+#define IS_DEVICE_SEP(_c_) ((_c_) == DEVICE_SEP)
+#endif
+#endif
+#ifndef IS_ANY_SEP
+#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))
+#endif
+
+
 \f
 char *getenv (), *getwd ();
 char *(getcwd) ();