freetdm: add __USE_BSD to ftdm_os, needed by unistd.h for usleep() and string.h to define strcasecmp()

add -Werror even when the compiler is unknown. This is just a work-around to gcc not being detected
         ad GNU by our current standalone build (not bootstrapped through FreeSWITCH)
This commit is contained in:
Moises Silva committed 2010-12-17 12:57:12 -05:00
1 parent 0f91359f3a
commit 27ea959b4b
5 files changed
+8 -11

No files matched your search

@@ -31,7 +31,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "private/ftdm_core.h"
#include "ftmod_zt.h"
+4 -1
View File
@@ -39,9 +39,12 @@
extern "C" {
#endif
#if defined(__linux__) && !defined(__USE_BSD)
#define __USE_BSD
#endif
#include "ftdm_declare.h"
#include "ftdm_threadmutex.h"
#include <string.h>
#ifndef __WINDOWS__
-6
View File
@@ -49,12 +49,6 @@
#include <string.h>
#include <errno.h>
#if defined(__linux__) && !defined(__USE_BSD)
#define __USE_BSD
#endif
#ifndef WIN32
#include <unistd.h>
#endif
#include "freetdm.h"