author | sandman <sandman> | 2002-10-14 01:17:39 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-14 01:17:39 (UTC) |
commit | 2c2d282f3d665035300873bddab6e64c843ebc0e (patch) (unidiff) | |
tree | efcab6d90f6529234b6c03cd4589b9fa868cd3a2 | |
parent | 1b8d2ecee642bdecfdc3be15625f2c53bab01e64 (diff) | |
download | opie-2c2d282f3d665035300873bddab6e64c843ebc0e.zip opie-2c2d282f3d665035300873bddab6e64c843ebc0e.tar.gz opie-2c2d282f3d665035300873bddab6e64c843ebc0e.tar.bz2 |
include fix for ipaq/zaurus compile
-rw-r--r-- | core/opie-login/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/opie-login/main.cpp b/core/opie-login/main.cpp index 2c10f77..8f795e3 100644 --- a/core/opie-login/main.cpp +++ b/core/opie-login/main.cpp | |||
@@ -30,48 +30,49 @@ | |||
30 | #include <sys/types.h> | 30 | #include <sys/types.h> |
31 | #include <time.h> | 31 | #include <time.h> |
32 | #include <sys/time.h> | 32 | #include <sys/time.h> |
33 | #include <sys/resource.h> | 33 | #include <sys/resource.h> |
34 | #include <unistd.h> | 34 | #include <unistd.h> |
35 | #include <syslog.h> | 35 | #include <syslog.h> |
36 | #include <sys/wait.h> | 36 | #include <sys/wait.h> |
37 | #include <stdio.h> | 37 | #include <stdio.h> |
38 | #include <stdlib.h> | 38 | #include <stdlib.h> |
39 | #include <signal.h> | 39 | #include <signal.h> |
40 | #include <getopt.h> | 40 | #include <getopt.h> |
41 | #include <string.h> | 41 | #include <string.h> |
42 | 42 | ||
43 | #include <qpe/qpeapplication.h> | 43 | #include <qpe/qpeapplication.h> |
44 | #include <qpe/qcopenvelope_qws.h> | 44 | #include <qpe/qcopenvelope_qws.h> |
45 | #include <qpe/qpestyle.h> | 45 | #include <qpe/qpestyle.h> |
46 | #include <qpe/power.h> | 46 | #include <qpe/power.h> |
47 | 47 | ||
48 | #include <opie/odevice.h> | 48 | #include <opie/odevice.h> |
49 | 49 | ||
50 | #include <qwindowsystem_qws.h> | 50 | #include <qwindowsystem_qws.h> |
51 | #include <qmessagebox.h> | 51 | #include <qmessagebox.h> |
52 | #include <qlabel.h> | 52 | #include <qlabel.h> |
53 | #include <qtimer.h> | 53 | #include <qtimer.h> |
54 | #include <qfile.h> | ||
54 | 55 | ||
55 | #include "loginapplication.h" | 56 | #include "loginapplication.h" |
56 | #include "loginwindowimpl.h" | 57 | #include "loginwindowimpl.h" |
57 | #include "calibrate.h" | 58 | #include "calibrate.h" |
58 | 59 | ||
59 | using namespace Opie; | 60 | using namespace Opie; |
60 | 61 | ||
61 | int login_main ( int argc, char **argv ); | 62 | int login_main ( int argc, char **argv ); |
62 | void sigterm ( int sig ); | 63 | void sigterm ( int sig ); |
63 | void exit_closelog ( ); | 64 | void exit_closelog ( ); |
64 | 65 | ||
65 | static struct option long_options [] = { | 66 | static struct option long_options [] = { |
66 | { "autologin", 1, 0, 'a' }, | 67 | { "autologin", 1, 0, 'a' }, |
67 | { 0, 0, 0, 0 } | 68 | { 0, 0, 0, 0 } |
68 | }; | 69 | }; |
69 | 70 | ||
70 | 71 | ||
71 | int main ( int argc, char **argv ) | 72 | int main ( int argc, char **argv ) |
72 | { | 73 | { |
73 | if ( ::geteuid ( ) != 0 ) { | 74 | if ( ::geteuid ( ) != 0 ) { |
74 | ::fprintf ( stderr, "%s can only be executed by root. (or chmod +s)", argv [0] ); | 75 | ::fprintf ( stderr, "%s can only be executed by root. (or chmod +s)", argv [0] ); |
75 | return 1; | 76 | return 1; |
76 | } | 77 | } |
77 | if ( ::getuid ( ) != 0 ) // qt doesn't really like SUID and | 78 | if ( ::getuid ( ) != 0 ) // qt doesn't really like SUID and |