[ROSAPPS]
authorDaniel Reimer <reimer.daniel@freenet.de>
Mon, 4 May 2015 23:08:17 +0000 (23:08 +0000)
committerDaniel Reimer <reimer.daniel@freenet.de>
Mon, 4 May 2015 23:08:17 +0000 (23:08 +0000)
Fix symdump, ncftp and netreg MSVC build.

svn path=/trunk/; revision=67548

rosapps/applications/devutils/symdump/CMakeLists.txt
rosapps/applications/net/ncftp/libncftp/ftp.c
rosapps/applications/net/ncftp/sio/syshdrs.h
rosapps/applications/net/netreg/CMakeLists.txt

index ffaddf0..14c5346 100644 (file)
@@ -3,7 +3,7 @@ include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
 add_executable(symdump symdump.c)
 set_module_type(symdump win32cui)
 target_link_libraries(symdump wine)
 add_executable(symdump symdump.c)
 set_module_type(symdump win32cui)
 target_link_libraries(symdump wine)
-add_importlibs(symdump dbghelp shlwapi msvcrt kernel32)
+add_importlibs(symdump dbghelp shlwapi msvcrt kernel32 ntdll)
 if(NOT MSVC)
     add_target_compile_flags(symdump "-Wno-unused-but-set-variable")
 endif()
 if(NOT MSVC)
     add_target_compile_flags(symdump "-Wno-unused-but-set-variable")
 endif()
index 9c24d26..ecddc7a 100644 (file)
@@ -10,8 +10,8 @@
 
 char gLibNcFTPVersion[64] = kLibraryVersion;
 
 
 char gLibNcFTPVersion[64] = kLibraryVersion;
 
-/* #ifdef NO_SIGNALS
-static char gNoSignalsMarker[] = "@(#) LibNcFTP - NO_SIGNALS";
+#ifdef NO_SIGNALS
+char gNoSignalsMarker[] = "@(#) LibNcFTP - NO_SIGNALS";
 #else
 
 static int gGotSig = 0;
 #else
 
 static int gGotSig = 0;
@@ -21,7 +21,7 @@ static sigjmp_buf gCancelConnectJmp;
 static jmp_buf gCancelConnectJmp;
 #endif
 
 static jmp_buf gCancelConnectJmp;
 #endif
 
-#endif */
+#endif
 
 
 #ifndef lint
 
 
 #ifndef lint
index 5279757..53da630 100644 (file)
@@ -14,7 +14,7 @@
 #      include "wincfg.h"
 #      include <winsock2.h>    /* includes <windows.h> */
 #      include <io.h>
 #      include "wincfg.h"
 #      include <winsock2.h>    /* includes <windows.h> */
 #      include <io.h>
-#      define _POSIX_ 1
+//#    define _POSIX_ 1
 #      ifdef HAVE_UNISTD_H
 #              include <unistd.h>
 #      endif
 #      ifdef HAVE_UNISTD_H
 #              include <unistd.h>
 #      endif
index a646064..ce7e2fc 100644 (file)
@@ -2,5 +2,5 @@
 set_cpp(WITH_RUNTIME WITH_STL)
 add_executable(netreg netreg.cpp netreg.rc)
 set_module_type(netreg win32cui)
 set_cpp(WITH_RUNTIME WITH_STL)
 add_executable(netreg netreg.cpp netreg.rc)
 set_module_type(netreg win32cui)
-add_importlibs(netreg advapi32 user32 ws2_32 msvcrt kernel32)
+add_importlibs(netreg advapi32 user32 ws2_32 msvcrt kernel32 ntdll)
 add_cd_file(TARGET netreg DESTINATION reactos/system32 FOR all)
 add_cd_file(TARGET netreg DESTINATION reactos/system32 FOR all)