#include <TargetConditionals.h>
#define INFO_FILE 1
-#define INFO_NIS 2
#if !TARGET_OS_EMBEDDED
+#define INFO_NIS 2
#define INFO_OPEN_DIRECTORY 3
#endif
case 'i':
if (!strcasecmp(optarg, "file")) {
infosystem = INFO_FILE;
+#ifdef INFO_NIS
} else if (!strcasecmp(optarg, "NIS")) {
infosystem = INFO_NIS;
} else if (!strcasecmp(optarg, "YP")) {
infosystem = INFO_NIS;
+#endif
#ifdef INFO_OPEN_DIRECTORY
} else if (!strcasecmp(optarg, "opendirectory")) {
infosystem = INFO_OPEN_DIRECTORY;
case INFO_FILE:
file_passwd(user, locn);
break;
+#ifdef INFO_NIS
case INFO_NIS:
nis_passwd(user, locn);
break;
+#endif
#ifdef INFO_OPEN_DIRECTORY
case INFO_OPEN_DIRECTORY:
od_passwd(user, locn, auth);