summaryrefslogtreecommitdiff
path: root/h
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1993-09-24 12:12:16 +0000
committerGravatar Richard Basch <probe@mit.edu>1993-09-24 12:12:16 +0000
commit3e67a39f2852fcd6ee8e6893b5d8882208c886e6 (patch)
treedaf3cfa295ffca1b99189980cc2cd3c7444673b9 /h
parentc0a2d6162ed6cd3adcdc007d215af9de95d9c295 (diff)
For the vax/rt, define strchr/strrchr to be index/rindex
Define _BCOPY, _BZERO, _BCMP macros to be either BSD or ANSI style.
Diffstat (limited to 'h')
-rw-r--r--h/zephyr/zephyr_conf.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/h/zephyr/zephyr_conf.h b/h/zephyr/zephyr_conf.h
index 240b7b8..938c936 100644
--- a/h/zephyr/zephyr_conf.h
+++ b/h/zephyr/zephyr_conf.h
@@ -30,6 +30,21 @@
#define HM_SVCNAME "zephyr-hm"
#define SERVER_SVCNAME "zephyr-clt"
+#if defined(vax) && !defined(ultrix)
+#define _BCOPY bcopy
+#define _BZERO bzero
+#define _BCMP bcmp
+#else
+#define _BCOPY(a,b,n) memmove(b,a,n)
+#define _BZERO(a,n) memset(a,0,n)
+#define _BCMP(a,b,n) memcmp(a,b,n)
+#endif
+
+#if defined(vax) || defined(ibm032)
+#define strchr index
+#define strrchr rindex
+#endif
+
#ifdef ultrix
/* If you are using Ultrix versions prior to 3.0, uncomment the following
three lines so that users don't need to specify -DULTRIX22 on their