summaryrefslogtreecommitdiff
path: root/core
authorkergoth <kergoth>2003-03-24 19:56:13 (UTC)
committer kergoth <kergoth>2003-03-24 19:56:13 (UTC)
commit13814875fb747d0081d191cd572a2219b9772c77 (patch) (side-by-side diff)
tree4b12d999cd8f7f16009c78885fa938a91b947f2e /core
parent8f122917f08f5e9d07c2bc4abe4f4c849c08f529 (diff)
downloadopie-13814875fb747d0081d191cd572a2219b9772c77.zip
opie-13814875fb747d0081d191cd572a2219b9772c77.tar.gz
opie-13814875fb747d0081d191cd572a2219b9772c77.tar.bz2
include qwsmouse_qws.h
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/opie-login/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/opie-login/main.cpp b/core/opie-login/main.cpp
index 9c40fc4..d95a59b 100644
--- a/core/opie-login/main.cpp
+++ b/core/opie-login/main.cpp
@@ -20,64 +20,65 @@
 -.   .:....=;==+<; General Public License along with this file;
  -_. . .   )=.  = see the file COPYING. If not, write to the
    --        :-=` Free Software Foundation, Inc.,
59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#define _GNU_SOURCE
#include <sys/types.h>
#include <time.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
#include <syslog.h>
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <getopt.h>
#include <string.h>
#include <qpe/qpeapplication.h>
#include <qpe/qcopenvelope_qws.h>
#include <qpe/qpestyle.h>
#include <qpe/power.h>
#include <qpe/config.h>
#include <opie/odevice.h>
#include <qwindowsystem_qws.h>
+#include <qwsmouse_qws.h>
#include <qmessagebox.h>
#include <qlabel.h>
#include <qtimer.h>
#include <qfile.h>
#include "loginapplication.h"
#include "loginwindowimpl.h"
#include "calibrate.h"
using namespace Opie;
int login_main ( int argc, char **argv, pid_t ppid );
void sigterm ( int sig );
void sigint ( int sig );
void exit_closelog ( );
static struct option long_options [] = {
{ "autologin", 1, 0, 'a' },
{ 0, 0, 0, 0 }
};
int main ( int argc, char **argv )
{
pid_t ppid = ::getpid ( );
if ( ::geteuid ( ) != 0 ) {
::fprintf ( stderr, "%s can only be executed by root. (or chmod +s)", argv [0] );
return 1;
}
if ( ::getuid ( ) != 0 ) // qt doesn't really like SUID and
::setuid ( 0 ); // messes up things like config files