From: Chris Hanson Date: Thu, 5 Jan 1995 23:48:27 +0000 (+0000) Subject: IBM's OS/2 C runtime library doesn't have `environ' -- instead it has X-Git-Tag: 20090517-FFI~6827 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=c6371490bbb749fdb482850ab1794a7a3ac3b242;p=mit-scheme.git IBM's OS/2 C runtime library doesn't have `environ' -- instead it has `_environ', which is equivalent -- so add a conditionalized definition. --- diff --git a/v7/src/microcode/prosproc.c b/v7/src/microcode/prosproc.c index 83bf40316..d51a880b4 100644 --- a/v7/src/microcode/prosproc.c +++ b/v7/src/microcode/prosproc.c @@ -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);