diff --git a/src/kit/taosdemo/taosdemo.c b/src/kit/taosdemo/taosdemo.c index 567983f578fcf77417ea288b0c6f4c904e9fb1d8..020bf7fb018c645a0c8e1c2f33196909fd2a8372 100644 --- a/src/kit/taosdemo/taosdemo.c +++ b/src/kit/taosdemo/taosdemo.c @@ -46,9 +46,11 @@ #include #include "os.h" +#ifdef TD_WINDOWS #pragma comment ( lib, "ws2_32.lib" ) #pragma comment ( lib, "winmm.lib" ) #pragma comment ( lib, "wldap32.lib" ) +#endif #endif #include "cJSON.h"