#include <sys/wait.h>
/*}}}*/
+#define _trace() printf("_trace(%s:%d)\n", __FILE__, __LINE__)
+
using namespace std;
ostream c0out(0);
ostream c1out(0);
ostream c2out(0);
-ofstream devnull("/dev/null");
unsigned int ScreenWidth = 80 - 1; /* - 1 for the cursor */
// class CacheFile - Cover class for some dependency cache functions /*{{{*/
int main(int argc,const char *argv[])
{
+#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200
struct nlist nl[2];
memset(nl, 0, sizeof(nl));
- nl[0].n_un.n_name = "_useMDNSResponder";
+ nl[0].n_un.n_name = (char *) "_useMDNSResponder";
nlist("/usr/lib/libc.dylib", nl);
if (nl[0].n_type != N_UNDF)
*(int *) nl[0].n_value = 0;
+#endif
CommandLine::Args Args[] = {
{'h',"help","help",0},
// Set up gettext support
setlocale(LC_ALL,"");
- textdomain(PACKAGE);
+ //textdomain(PACKAGE);
// Parse the command line and initialize the package library
CommandLine CmdL(Args,_config);
if (!isatty(STDOUT_FILENO) && _config->FindI("quiet",0) < 1)
_config->Set("quiet","1");
+ ofstream devnull;
+ devnull.open("/dev/null");
+
// Setup the output streams
c0out.rdbuf(cout.rdbuf());
c1out.rdbuf(cout.rdbuf());