ref: b85e12db623f6fe1c8681855df01fbd5cff78947
parent: 9e453d95547f3263ac00f36e22af4d8e5687c784
author: robs <robs>
date: Fri Sep 7 16:46:13 EDT 2007
msvc fixes
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,6 +43,7 @@
#check_include_files("ltdl.h" HAVE_LTDL_H) # no plug-ins as yet
check_include_files("stdint.h" HAVE_STDINT_H)
check_include_files("string.h" HAVE_STRING_H)
+check_include_files("strings.h" HAVE_STRINGS_H)
check_include_files("sys/time.h" HAVE_SYS_TIME_H)
check_include_files("sys/timeb.h" HAVE_SYS_TIMEB_H)
check_include_files("unistd.h" HAVE_UNISTD_H)
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -51,7 +51,10 @@
add_executable(${PROJECT_NAME} ${PROJECT_NAME}.c)
target_link_libraries(${PROJECT_NAME} lib${PROJECT_NAME} lpc10 ${optional_libs})
add_executable(sox_sample_test sox_sample_test.c)
-add_custom_target(rec ALL ln -sf sox rec DEPENDS sox)
-add_custom_target(play ALL ln -sf sox play DEPENDS sox)
+find_program(LN ln)
+if (LN)
+ add_custom_target(rec ALL ${LN} -sf sox rec DEPENDS sox)
+ add_custom_target(play ALL ${LN} -sf sox play DEPENDS sox)
+endif (LN)
find_program(CTAGS NAMES exuberant-ctags ctags)
add_custom_target(tags ${CTAGS} --recurse --extra=fq ${CMAKE_CURRENT_SOURCE_DIR})
--- a/src/effects.c
+++ b/src/effects.c
@@ -20,7 +20,10 @@
#include "sox_i.h"
#include <assert.h>
#include <string.h>
-#include <strings.h>
+#ifdef HAVE_STRINGS_H
+ #include <strings.h>
+#endif
+
#undef sox_fail
#undef sox_report