Add NO_LOCALNAME

The pname to uid functionality at present assumes there is
an implementation of getpwnam() and that the local user
identifier is an integer.  On Windows, the local user identifier
is a SId.  Add NO_LOCALNAME as a build option so that Windows
(for now) can build without providing a getpwnam() implementation.

Change-Id: I04cfd6d2cd52e6228733f1da1dab420b453e6566
This commit is contained in:
Jeffrey Altman
2011-05-17 13:56:37 -04:00
parent dbbf89bccf
commit 87aad6a13a
4 changed files with 13 additions and 0 deletions

View File

@@ -76,6 +76,7 @@ while(<>) {
if ("$(HAVE_SCC)") { print "#define HAVE_SCC 1\n"; }
if ("$(DIR_hdbdir)") { print "#define HDB_DB_DIR \"".'$(DIR_hdbdir)'."\"\n"; }
if ("$(HAVE_MSLSA_CACHE)") { print "#define HAVE_MSLSA_CACHE 1\n"; }
if ("$(NO_LOCALNAME)") { print "#define NO_LOCALNAME 1\n"; }
} elsif (m/\@VERSION_OPTDEFS\@/) {