-rw-r--r-- | pwmanager/pwmanager/blowfish.h | 11 | ||||
-rw-r--r-- | pwmanager/pwmanager/gpasmanfile.cpp | 16 | ||||
-rw-r--r-- | pwmanager/pwmanager/htmlgen.cpp | 2 | ||||
-rw-r--r-- | pwmanager/pwmanager/ipc.cpp | 7 | ||||
-rw-r--r-- | pwmanager/pwmanager/ipc.h | 5 | ||||
-rw-r--r-- | pwmanager/pwmanager/libgcryptif.h | 7 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwm.cpp | 1 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmanager.pro | 2 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmdoc.cpp | 9 | ||||
-rw-r--r-- | pwmanager/pwmanager/spinforsignal.h | 2 |
10 files changed, 50 insertions, 12 deletions
diff --git a/pwmanager/pwmanager/blowfish.h b/pwmanager/pwmanager/blowfish.h index c05de77..5129eab 100644 --- a/pwmanager/pwmanager/blowfish.h +++ b/pwmanager/pwmanager/blowfish.h | |||
@@ -26,4 +26,7 @@ | |||
26 | #include "pwmexception.h" | 26 | #include "pwmexception.h" |
27 | 27 | #ifndef _WIN32_ | |
28 | #include <stdint.h> | 28 | #include <stdint.h> |
29 | #else | ||
30 | |||
31 | #endif | ||
29 | #include <string> | 32 | #include <string> |
@@ -35,3 +38,9 @@ using std::string; | |||
35 | 38 | ||
39 | #ifndef _WIN32_ | ||
36 | typedef uint8_t byte; | 40 | typedef uint8_t byte; |
41 | #else | ||
42 | #define uint8_t Q_UINT8 | ||
43 | #define byte Q_UINT8 | ||
44 | #define uint32_t Q_UINT32 | ||
45 | #endif | ||
37 | 46 | ||
diff --git a/pwmanager/pwmanager/gpasmanfile.cpp b/pwmanager/pwmanager/gpasmanfile.cpp index f80bc13..ae34c83 100644 --- a/pwmanager/pwmanager/gpasmanfile.cpp +++ b/pwmanager/pwmanager/gpasmanfile.cpp | |||
@@ -46,3 +46,10 @@ | |||
46 | #include <stdlib.h> | 46 | #include <stdlib.h> |
47 | #ifndef _WIN32_ | ||
47 | #include <unistd.h> | 48 | #include <unistd.h> |
49 | #else | ||
50 | #include <io.h> | ||
51 | #define S_IRUSR _S_IREAD | ||
52 | #define S_IWUSR _S_IWRITE | ||
53 | #define creat _creat | ||
54 | #endif | ||
48 | #include <string.h> | 55 | #include <string.h> |
@@ -64,3 +71,3 @@ | |||
64 | 71 | ||
65 | 72 | #ifndef _WIN32_ | |
66 | #if defined(PWM_DEBUG) && defined(GPASMANFILE_DEBUG) | 73 | #if defined(PWM_DEBUG) && defined(GPASMANFILE_DEBUG) |
@@ -70,2 +77,5 @@ | |||
70 | #endif | 77 | #endif |
78 | #else | ||
79 | # define DBG | ||
80 | #endif | ||
71 | 81 | ||
@@ -412,3 +422,3 @@ int GpasmanFile::check_file(const char *filename) | |||
412 | } | 422 | } |
413 | 423 | #ifndef _WIN32_ | |
414 | if (!S_ISREG(naamstat.st_mode)) { | 424 | if (!S_ISREG(naamstat.st_mode)) { |
@@ -420,3 +430,3 @@ int GpasmanFile::check_file(const char *filename) | |||
420 | } | 430 | } |
421 | 431 | #endif | |
422 | return (1); | 432 | return (1); |
diff --git a/pwmanager/pwmanager/htmlgen.cpp b/pwmanager/pwmanager/htmlgen.cpp index 166b987..bee8198 100644 --- a/pwmanager/pwmanager/htmlgen.cpp +++ b/pwmanager/pwmanager/htmlgen.cpp | |||
@@ -62,3 +62,3 @@ QString HtmlGen::escapeHtmlText(const QString &str) | |||
62 | for (i = 0; i < len; ++i) { | 62 | for (i = 0; i < len; ++i) { |
63 | c = str[i]; | 63 | c = str.at(i); |
64 | switch (c) { | 64 | switch (c) { |
diff --git a/pwmanager/pwmanager/ipc.cpp b/pwmanager/pwmanager/ipc.cpp index b1d2c68..643b022 100644 --- a/pwmanager/pwmanager/ipc.cpp +++ b/pwmanager/pwmanager/ipc.cpp | |||
@@ -23,5 +23,5 @@ | |||
23 | #include <qsocketnotifier.h> | 23 | #include <qsocketnotifier.h> |
24 | 24 | #ifndef _WIN32_ | |
25 | #include <sys/socket.h> | 25 | #include <sys/socket.h> |
26 | 26 | #endif | |
27 | #ifndef PWM_EMBEDDED | 27 | #ifndef PWM_EMBEDDED |
@@ -74,2 +74,3 @@ Ipc::Ipc() | |||
74 | { | 74 | { |
75 | #ifndef _WIN32_ | ||
75 | if (socketpair(AF_LOCAL, SOCK_STREAM, 0, sock)) { | 76 | if (socketpair(AF_LOCAL, SOCK_STREAM, 0, sock)) { |
@@ -77,3 +78,3 @@ Ipc::Ipc() | |||
77 | } | 78 | } |
78 | 79 | #endif | |
79 | QSocket* qsock = new QSocket(); | 80 | QSocket* qsock = new QSocket(); |
diff --git a/pwmanager/pwmanager/ipc.h b/pwmanager/pwmanager/ipc.h index e5a496d..7bfca02 100644 --- a/pwmanager/pwmanager/ipc.h +++ b/pwmanager/pwmanager/ipc.h | |||
@@ -23,4 +23,7 @@ | |||
23 | #include <qobject.h> | 23 | #include <qobject.h> |
24 | #ifndef _WIN32_ | ||
24 | #include <unistd.h> | 25 | #include <unistd.h> |
25 | 26 | #else | |
27 | #include <io.h> | ||
28 | #endif | ||
26 | #ifndef PWM_EMBEDDED | 29 | #ifndef PWM_EMBEDDED |
diff --git a/pwmanager/pwmanager/libgcryptif.h b/pwmanager/pwmanager/libgcryptif.h index dffd55b..1a7b658 100644 --- a/pwmanager/pwmanager/libgcryptif.h +++ b/pwmanager/pwmanager/libgcryptif.h | |||
@@ -33,4 +33,9 @@ | |||
33 | #include <sys/types.h> | 33 | #include <sys/types.h> |
34 | #ifndef _WIN32_ | ||
34 | #include <stdint.h> | 35 | #include <stdint.h> |
35 | 36 | #else | |
37 | #define uint8_t Q_UINT8 | ||
38 | #define byte Q_UINT8 | ||
39 | #define uint32_t Q_UINT32 | ||
40 | #endif | ||
36 | #define STRING2KEY_SALTLEN8 | 41 | #define STRING2KEY_SALTLEN8 |
diff --git a/pwmanager/pwmanager/pwm.cpp b/pwmanager/pwmanager/pwm.cpp index d92c90d..1ab2b71 100644 --- a/pwmanager/pwmanager/pwm.cpp +++ b/pwmanager/pwmanager/pwm.cpp | |||
@@ -1412,2 +1412,3 @@ void PwM::createAboutData_slot() | |||
1412 | #include <../version> | 1412 | #include <../version> |
1413 | ; | ||
1413 | QMessageBox::about( this, "About PwManager/Pi", | 1414 | QMessageBox::about( this, "About PwManager/Pi", |
diff --git a/pwmanager/pwmanager/pwmanager.pro b/pwmanager/pwmanager/pwmanager.pro index 80b2519..fbc0554 100644 --- a/pwmanager/pwmanager/pwmanager.pro +++ b/pwmanager/pwmanager/pwmanager.pro | |||
@@ -6,3 +6,3 @@ include( ../../variables.pri ) | |||
6 | 6 | ||
7 | INCLUDEPATH += . ../../ ../../libkdepim ../../microkde ../../microkde/kdecore ../../microkde/kdeui ../../microkde/kutils | 7 | INCLUDEPATH += . ../../ ../../libkdepim ../../microkde ../../microkde/kdecore ../../microkde/kdeui ../../microkde/kutils ../libcrypt/crypt ../libcrypt/error ../libcrypt/zlib |
8 | DEFINES += PWM_EMBEDDED CONFIG_PWMANAGER_GCRY DESKTOP_VERSION | 8 | DEFINES += PWM_EMBEDDED CONFIG_PWMANAGER_GCRY DESKTOP_VERSION |
diff --git a/pwmanager/pwmanager/pwmdoc.cpp b/pwmanager/pwmanager/pwmdoc.cpp index 86b6273..129bf7b 100644 --- a/pwmanager/pwmanager/pwmdoc.cpp +++ b/pwmanager/pwmanager/pwmdoc.cpp | |||
@@ -57,5 +57,6 @@ | |||
57 | #include <sys/stat.h> | 57 | #include <sys/stat.h> |
58 | #ifndef _WIN32_ | ||
58 | #include <unistd.h> | 59 | #include <unistd.h> |
59 | #include <stdint.h> | 60 | #include <stdint.h> |
60 | 61 | #endif | |
61 | 62 | ||
@@ -507,2 +508,3 @@ PwMerror PwMDoc::saveDoc(char compress, const QString *file) | |||
507 | f.close(); | 508 | f.close(); |
509 | #ifndef _WIN32_ | ||
508 | if (chmod(filename.latin1(), | 510 | if (chmod(filename.latin1(), |
@@ -511,2 +513,3 @@ PwMerror PwMDoc::saveDoc(char compress, const QString *file) | |||
511 | } | 513 | } |
514 | #endif | ||
512 | openDocList.edit(this, getTitle().latin1()); | 515 | openDocList.edit(this, getTitle().latin1()); |
@@ -2220,2 +2223,3 @@ bool PwMDoc::execLauncher(unsigned int category, unsigned int entryIndex) | |||
2220 | { | 2223 | { |
2224 | #ifndef _WIN32_ | ||
2221 | if (geteuid() == 0) { | 2225 | if (geteuid() == 0) { |
@@ -2224,2 +2228,3 @@ bool PwMDoc::execLauncher(unsigned int category, unsigned int entryIndex) | |||
2224 | } | 2228 | } |
2229 | #endif | ||
2225 | QString command(dti.dta[category].d[entryIndex].launcher.c_str()); | 2230 | QString command(dti.dta[category].d[entryIndex].launcher.c_str()); |
@@ -2272,2 +2277,3 @@ bool PwMDoc::goToURL(unsigned int category, unsigned int entryIndex) | |||
2272 | { | 2277 | { |
2278 | #ifndef _WIN32_ | ||
2273 | if (geteuid() == 0) { | 2279 | if (geteuid() == 0) { |
@@ -2276,2 +2282,3 @@ bool PwMDoc::goToURL(unsigned int category, unsigned int entryIndex) | |||
2276 | } | 2282 | } |
2283 | #endif | ||
2277 | QString url(dti.dta[category].d[entryIndex].url.c_str()); | 2284 | QString url(dti.dta[category].d[entryIndex].url.c_str()); |
diff --git a/pwmanager/pwmanager/spinforsignal.h b/pwmanager/pwmanager/spinforsignal.h index ec6103b..f3cabee 100644 --- a/pwmanager/pwmanager/spinforsignal.h +++ b/pwmanager/pwmanager/spinforsignal.h | |||
@@ -24,3 +24,5 @@ | |||
24 | 24 | ||
25 | #ifndef _WIN32_ | ||
25 | #include <stdint.h> | 26 | #include <stdint.h> |
27 | #endif | ||
26 | #include <string> | 28 | #include <string> |