27 */ |
27 */ |
28 |
28 |
29 #include <stdio.h> |
29 #include <stdio.h> |
30 #include <stdlib.h> |
30 #include <stdlib.h> |
31 |
31 |
32 #include <netinet/in.h> |
|
33 |
|
34 #include "pwd.h" |
32 #include "pwd.h" |
35 |
33 |
36 #include <ucx/buffer.h> |
34 #include <ucx/buffer.h> |
37 #include <ucx/utils.h> |
35 #include <ucx/utils.h> |
38 |
36 |
39 |
37 #ifdef _WIN32 |
|
38 #include <winsock.h> |
|
39 #else |
|
40 #include <netinet/in.h> |
|
41 #endif |
40 |
42 |
41 PwdStore* pwdstore_open(const char *file) { |
43 PwdStore* pwdstore_open(const char *file) { |
42 FILE *in = fopen(file, "r"); |
44 FILE *in = fopen(file, "r"); |
43 if(!in) { |
45 if(!in) { |
44 return NULL; |
46 return NULL; |