File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 17
17
#include " src/config.h"
18
18
19
19
#ifdef WIN32
20
+ #include " src/compat/msvc.h"
20
21
#include < winsock2.h>
21
22
#include < iphlpapi.h>
22
23
#endif
48
49
#endif
49
50
50
51
#include < stdio.h>
52
+ #ifndef WIN32
51
53
#include < unistd.h>
54
+ #else
55
+ #include < io.h>
56
+ #endif
52
57
#include < string.h>
53
58
54
59
#include " src/utils/sha1.h"
@@ -207,7 +212,7 @@ std::string UniqueId::ethernetMacAddress() {
207
212
pAdapter = pAdapterInfo;
208
213
while (pAdapter && !mac[0 ] && !mac[1 ] && !mac[2 ]) {
209
214
if (pAdapter->AddressLength > 4 ) {
210
- apr_snprintf (mac, MAC_ADDRESS_SIZE, " %02x:%02x:%02x:%02x:%02x:%02x" ,
215
+ snprintf (mac, MAC_ADDRESS_SIZE, " %02x:%02x:%02x:%02x:%02x:%02x" ,
211
216
(unsigned char )pAdapter->Address [0 ],
212
217
(unsigned char )pAdapter->Address [1 ],
213
218
(unsigned char )pAdapter->Address [2 ],
You can’t perform that action at this time.
0 commit comments