projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WIN32 compilation error fixes.
[silc.git]
/
lib
/
silchttp
/
silchttpphp.c
diff --git
a/lib/silchttp/silchttpphp.c
b/lib/silchttp/silchttpphp.c
index 6b699d94d87c0dc95c9e642fe779417c0609f28f..d1cb24e09d968ef098c3c388d6b2dd651eeb8aa6 100644
(file)
--- a/
lib/silchttp/silchttpphp.c
+++ b/
lib/silchttp/silchttpphp.c
@@
-4,7
+4,7
@@
Author: Pekka Riikonen <priikone@silcnet.org>
Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2006 Pekka Riikonen
+ Copyright (C) 2006
- 2007
Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-81,7
+81,11
@@
SilcBuffer silc_http_php_file(const char *filename)
len = fread(tmp, 1, sizeof(tmp), fd);
if (len < 0) {
silc_buffer_free(ret);
len = fread(tmp, 1, sizeof(tmp), fd);
if (len < 0) {
silc_buffer_free(ret);
- pclose(fd);
+#ifdef SILC_WIN32
\r
+ _pclose(fd);
+#else
\r
+ pclose(fd);
\r
+#endif /* SILC_WIN32 */
\r
return NULL;
}
return NULL;
}
@@
-89,7
+93,11
@@
SilcBuffer silc_http_php_file(const char *filename)
if (!ret) {
ret = silc_buffer_alloc(0);
if (!ret) {
if (!ret) {
ret = silc_buffer_alloc(0);
if (!ret) {
- pclose(fd);
+#ifdef SILC_WIN32
\r
+ _pclose(fd);
\r
+#else
\r
+ pclose(fd);
\r
+#endif /* SILC_WIN32 */
\r
return NULL;
}
}
return NULL;
}
}