Mercurial > emacs
changeset 83501:9490895469d4
Fix OpenBSD compilation some more. (Fix by Han Boetes.)
* lib-src/emacsclient.c: Copy IS_*_SEP definitions from lisp.h.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-541
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Sat, 01 Apr 2006 12:54:10 +0000 |
parents | 0a651d0085ee |
children | c1e013e3dc0e |
files | lib-src/emacsclient.c |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/emacsclient.c Tue Mar 28 17:28:17 2006 +0000 +++ b/lib-src/emacsclient.c Sat Apr 01 12:54:10 2006 +0000 @@ -45,6 +45,25 @@ #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 + + char *getenv (), *getwd (); char *(getcwd) ();