summaryrefslogtreecommitdiff
path: root/lib/getenv.c
blob: c45065989c7eb47b2b25b0cc984e229e1d5fbb89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "../include/sane/config.h"

#ifndef HAVE_GETENV

char *
getenv(const char *name)
{
  char *retval = 0;
#ifdef HAVE_OS2_H
  if (0 != DosScanEnv (buf, &retval))
    retval = 0;
#else
#  error "Missing getenv() on this platform.  Please implement."
#endif
  return retval;
}

#endif /* !HAVE_GETENV */