Print this page
make: unifdef for other OSes (undefined)

*** 100,112 **** #ifdef MAXJOBS_ADJUST_RFE4694000 extern void job_adjust_fini(); #endif /* MAXJOBS_ADJUST_RFE4694000 */ #endif /* TEAMWARE_MAKE_CMN */ - #if defined(linux) - #include <ctype.h> - #endif /* * Defined macros */ #define LD_SUPPORT_ENV_VAR NOCATGETS("SGS_SUPPORT") --- 100,109 ----
*** 199,211 **** #ifdef TEAMWARE_MAKE_CMN extern char verstring[]; #endif jmp_buf jmpbuffer; - #if !defined(linux) extern nl_catd catd; - #endif /* * main(argc, argv) * * Parameters: --- 196,206 ----
*** 261,280 **** #endif bsd_signals(); (void) setlocale(LC_ALL, ""); - #if defined (HP_UX) || defined(linux) - /* HP-UX users typically will not have NLSPATH set, and this binary - * requires that it be set. On HP-UX 9.0x, /usr/lib/nls/%L/%N.cat is - * the path to set it to. - */ - - if (getenv(NOCATGETS("NLSPATH")) == NULL) { - putenv(NOCATGETS("NLSPATH=/usr/lib/nls/%L/%N.cat")); - } - #endif #ifdef DMAKE_STATISTICS if (getenv(NOCATGETS("DMAKE_STATISTICS"))) { getname_stat = true; } --- 256,265 ----
*** 413,428 **** if(!strcmp(prognameptr, NOCATGETS("svr4.make"))) { svr4 = true; posix = false; } } - #if !defined(HP_UX) && !defined(linux) if (getenv(USE_SVR4_MAKE) || getenv(NOCATGETS("USE_SVID"))){ svr4 = true; posix = false; } - #endif /* * Find the dmake_compat_mode: posix, sun, svr4, or gnu_style, . */ char * dmake_compat_mode_var = getenv(NOCATGETS("SUN_MAKE_COMPAT_MODE")); --- 398,411 ----
*** 1373,1395 **** } else { fatal(catgets(catd, 1, 280, "Missing argument after `-%c'"), optopt); } } - #if defined(linux) - if (ch == 1) { - if(optind < argc) { - //optind++; - //current_optind++; - makefile_next = 0; - current_optind = optind; - continue; - } else { - break; - } - } - #endif makefile_next |= parse_command_option(ch); /* * If we're done processing all of the options of --- 1356,1365 ----
*** 1725,1737 **** return 0; case 'd': /* Debug flag */ if (invert_this) { debug_level--; } else { - #if defined( HP_UX) || defined(linux) - if (debug_level < 2) /* Fixes a bug on HP-UX */ - #endif debug_level++; } return 0; #ifdef NSE case 'E': --- 1695,1704 ----