diff --git a/client.c b/client.c index a0afcd9..f25a249 100644 --- a/client.c +++ b/client.c @@ -9,8 +9,11 @@ #include #include #include + #if !__APPLE__ - #include + #include +#else + struct sf_hdtr hdtr; #endif int sockfd; @@ -18,7 +21,6 @@ char buf[BUFSIZ]; char bufr[BUFSIZ]; struct sockaddr_in their_addr; pthread_t thread; -struct sf_hdtr hdtr; uint32_t file_size; int recv_bin = 0; diff --git a/server.c b/server.c index 914a030..82f91f0 100644 --- a/server.c +++ b/server.c @@ -13,8 +13,11 @@ #include #include #include + #if !__APPLE__ - #include + #include +#else + struct sf_hdtr hdtr; #endif #define PASSWORD "fumiama" @@ -24,7 +27,6 @@ int fd; socklen_t struct_len = sizeof(struct sockaddr_in); struct sockaddr_in server_addr; -struct sf_hdtr hdtr; char *data_path; char *kanban_path;