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
*/
-#include "silc.h"
+#include "silcruntime.h"
#include "silchttpphp.h"
/* Executes PHP code and returns result */
len = fread(tmp, 1, sizeof(tmp), fd);
if (len < 0) {
silc_buffer_free(ret);
+#ifdef SILC_WIN32
+ _pclose(fd);
+#else
pclose(fd);
+#endif /* SILC_WIN32 */
return NULL;
}
if (!ret) {
ret = silc_buffer_alloc(0);
if (!ret) {
- pclose(fd);
+#ifdef SILC_WIN32
+ _pclose(fd);
+#else
+ pclose(fd);
+#endif /* SILC_WIN32 */
return NULL;
}
}