Skip to content

Commit

Permalink
fix link error for demo_server and demo_client (#414)
Browse files Browse the repository at this point in the history
* add undef to fix windows compile error

* fix link error for demo_server and demo_client

---------

Co-authored-by: SKY-20230424HUG\Administrator <[email protected]>
  • Loading branch information
pengyutang125 and SKY-20230424HUG\Administrator authored Apr 25, 2024
1 parent e9b4c37 commit b691b6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo/demo_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#pragma comment(lib,"ws2_32.lib")
#pragma comment(lib,"event.lib")
#pragma comment(lib, "Iphlpapi.lib")
#pragma comment(lib, "Bcrypt.lib")
#include "../tests/getopt.h"
#else
#include <sys/socket.h>
Expand Down
1 change: 1 addition & 0 deletions demo/demo_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#pragma comment(lib,"ws2_32.lib")
#pragma comment(lib,"event.lib")
#pragma comment(lib, "Iphlpapi.lib")
#pragma comment(lib, "Bcrypt.lib")
#endif


Expand Down

0 comments on commit b691b6e

Please sign in to comment.