From 0655456f68849bfad9019a7760dec961792d7519 Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 17 Oct 2002 16:45:38 +0000 Subject: Move around some #ifdefs to be able to be built with Qt2/X11 --- (limited to 'core/launcher/main.cpp') diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp index 073e19a..762a596 100644 --- a/core/launcher/main.cpp +++ b/core/launcher/main.cpp @@ -32,6 +32,7 @@ #include #include +#include #include #include #include @@ -53,7 +54,7 @@ void initEnvironment() config.setGroup( "Location" ); QString tz = config.readEntry( "Timezone", getenv("TZ") ); - // if not timezone set, pick New York + // if not timezone set, pick New York if (tz.isNull()) tz = "America/New_York"; @@ -129,7 +130,7 @@ static const char *pidfile_path = "/var/run/opie.pid"; void create_pidfile ( ) { FILE *f; - + if (( f = ::fopen ( pidfile_path, "w" ))) { ::fprintf ( f, "%d", getpid ( )); ::fclose ( f ); @@ -156,7 +157,7 @@ int main( int argc, char ** argv ) ::setsid ( ); ::setpgid ( 0, 0 ); - + ::atexit ( remove_pidfile ); create_pidfile ( ); -- cgit v0.9.0.2