X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fctsim.cpp;h=a3aefb58a3d11c9ece7728d61cd15fd03e557c0e;hp=385fbee15445f120343b24bf7830efb62d649474;hb=c149735f56364c224ec6847d0f32ba06af86dc5b;hpb=bfcc769cf8019eabc8c65c07257c8dbee4b4c977 diff --git a/src/ctsim.cpp b/src/ctsim.cpp index 385fbee..a3aefb5 100644 --- a/src/ctsim.cpp +++ b/src/ctsim.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: ctsim.cpp,v 1.10 2000/08/31 08:38:58 kevin Exp $ +** $Id: ctsim.cpp,v 1.11 2000/09/02 16:40:36 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -53,7 +53,7 @@ #include #endif -static const char* rcsindent = "$Id: ctsim.cpp,v 1.10 2000/08/31 08:38:58 kevin Exp $"; +static const char* rcsindent = "$Id: ctsim.cpp,v 1.11 2000/09/02 16:40:36 kevin Exp $"; class CTSimApp* theApp = NULL; @@ -72,9 +72,21 @@ CTSimApp::CTSimApp(void) theApp = this; } +#ifdef HAVE_SYS_TIME_H +#include +#endif + +#ifdef HAVE_SYS_RESOURCE_H +#include +#endif + bool CTSimApp::OnInit(void) { +#ifdef HAVE_SETPRIORITY + setpriority (PRIO_PROCESS, 0, 15); // set to low scheduling priority +#endif + // process options while (1) { int c = getopt_long (argc, argv, "", ctsimOptions, NULL);