src/server/safs/init.c

changeset 161
aadda87bad1b
parent 140
93247a579184
child 162
b169992137a8
--- a/src/server/safs/init.c	Thu Jan 26 17:23:11 2017 +0100
+++ b/src/server/safs/init.c	Thu Jan 26 18:53:52 2017 +0100
@@ -26,7 +26,13 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#ifdef XP_UNIX
 #include <dlfcn.h> 
+#endif
+#ifdef XP_WIN32
+
+#endif
+
 #include <ucx/string.h>
 
 #include "../daemon/func.h"
@@ -39,6 +45,8 @@
     return REQ_PROCEED;
 }
 
+#ifdef XP_UNIX
+
 int load_modules(pblock *pb, Session *sn, Request *rq) {
     char *shlib = pblock_findval("shlib", pb);
     char *funcs = pblock_findval("funcs", pb);
@@ -129,3 +137,15 @@
     
     return REQ_PROCEED;
 }
+
+#endif
+
+#ifdef XP_WIN32
+
+int load_modules(pblock *pb, Session *sn, Request *rq) {
+    // TODO: implement
+    return 0;
+}
+
+#endif
+

mercurial