more Cygwin portability (issue #4678)
[asterisk/asterisk.git] / cdr / cdr_odbc.c
index b7a7d1a..a3e2a69 100755 (executable)
 #include <unistd.h>
 #include <time.h>
 
+#ifndef __CYGWIN__
 #include <sql.h>
 #include <sqlext.h>
 #include <sqltypes.h>
+#else
+#include <windows.h>
+#include <w32api/sql.h>
+#include <w32api/sqlext.h>
+#include <w32api/sqltypes.h>
+#endif
 
 #include "asterisk.h"