1 #include "../include/sane/config.h" 2 3 #ifndef HAVE_GETENV 4 5 char * getenv(const char *name)6getenv(const char *name) 7 { 8 char *retval = 0; 9 #ifdef HAVE_OS2_H 10 if (0 != DosScanEnv (buf, &retval)) 11 retval = 0; 12 #else 13 # error "Missing getenv() on this platform. Please implement." 14 #endif 15 return retval; 16 } 17 18 #endif /* !HAVE_GETENV */ 19