Skip to content

Commit 9823902

Browse files
committed
Build fixes
1 parent b190c1c commit 9823902

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

linux.c

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#include <stdio.h>
1313
#include <unistd.h>
14+
#include <stdint.h>
1415
#include <string.h>
1516
#include <limits.h>
1617
#include <fcntl.h>

search.h

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#ifndef _MY_SEARCH_H
2121
#define _MY_SEARCH_H 1
2222

23+
#ifndef linux
2324
#define __USE_GNU
2425
#define __set_errno(_v) (errno = _v)
2526
#define __THROW
@@ -61,5 +62,6 @@ extern int hcreate_r (size_t __nel, struct hsearch_data *__htab) __THROW;
6162
extern void hdestroy_r (struct hsearch_data *__htab) __THROW;
6263
#endif
6364

65+
#endif /* !linux */
6466

6567
#endif /* search.h */

0 commit comments

Comments
 (0)