summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/s/usg5-3.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/s/usg5-3.h b/src/s/usg5-3.h
index 557091d19b9..5323bb694a6 100644
--- a/src/s/usg5-3.h
+++ b/src/s/usg5-3.h
@@ -148,8 +148,12 @@ Boston, MA 02111-1307, USA. */
#define _longjmp longjmp
/* On USG systems these have different names */
+#ifndef HAVE_INDEX
#define index strchr
+#endif /* ! defined (HAVE_INDEX) */
+#ifndef HAVE_RINDEX
#define rindex strrchr
+#endif /* ! defined (HAVE_RINDEX) */
/* USG systems tend to put everything declared static
into the initialized data area, which becomes pure after dumping Emacs.