diff options
Diffstat (limited to 'sql/udf_example.c')
-rw-r--r-- | sql/udf_example.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/udf_example.c b/sql/udf_example.c index 82af58ec502..4e3dd82c467 100644 --- a/sql/udf_example.c +++ b/sql/udf_example.c @@ -139,6 +139,11 @@ typedef long long longlong; #include <mysql.h> #include <ctype.h> +#ifdef _WIN32 +/* inet_aton needs winsock library */ +#pragma comment(lib, "ws2_32") +#endif + #ifdef HAVE_DLOPEN static pthread_mutex_t LOCK_hostname; |