IBM's OS/2 C runtime library doesn't have `environ' -- instead it has
authorChris Hanson <org/chris-hanson/cph>
Thu, 5 Jan 1995 23:48:27 +0000 (23:48 +0000)
committerChris Hanson <org/chris-hanson/cph>
Thu, 5 Jan 1995 23:48:27 +0000 (23:48 +0000)
`_environ', which is equivalent -- so add a conditionalized
definition.

v7/src/microcode/prosproc.c

index 83bf4031612ae7da6ab3f2f4a4153fdf6d0396e4..d51a880b4061d627210a579a7331eecab601df05 100644 (file)
@@ -1,8 +1,8 @@
 /* -*-C-*-
 
-$Id: prosproc.c,v 1.13 1993/06/24 07:09:26 gjr Exp $
+$Id: prosproc.c,v 1.14 1995/01/05 23:48:27 cph Exp $
 
-Copyright (c) 1990-92 Massachusetts Institute of Technology
+Copyright (c) 1990-95 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -180,6 +180,10 @@ DEFUN (convert_string_vector, (vector), SCHEME_OBJECT vector)
   return (result);
 }
 
+#ifdef _OS2
+#define environ _environ
+#endif
+
 DEFINE_PRIMITIVE ("SCHEME-ENVIRONMENT", Prim_scheme_environment, 0, 0, 0)
 {
   PRIMITIVE_HEADER (0);