Skip to content

Commit 9f4f103

Browse files
committed
Update list of header files to be installed for dispatch and os.
Move stubs.h to stubs_internal.h and include it from internal.h (so we don't need to install stubs to get a complete set of header files).
1 parent 9a39fef commit 9f4f103

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

dispatch/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dispatchdir=$(includedir)/dispatch
66

77
dispatch_HEADERS= \
88
base.h \
9+
block.h \
910
data.h \
1011
dispatch.h \
1112
group.h \

os/Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
osdir=$(includedir)/os
66

77
os_HEADERS= \
8-
object.h
8+
object.h \
9+
base.h \
10+
linux_base.h
911

1012
noinst_HEADERS= \
1113
object_private.h

os/linux_base.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,4 @@ struct voucher_offsets_s {
118118
#define LINUX_PORT_ERROR() do { printf("LINUX_PORT_ERROR_CALLED %s:%d: %s\n",__FILE__,__LINE__,__FUNCTION__); } while (0)
119119

120120

121-
// Functions we are stubbing out
122-
#include<os/stubs.h>
123-
124-
125121
#endif /* __OS_LINUX_BASE__ */

src/internal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282

8383

8484
#include <os/object.h>
85+
#include "stubs_internal.h"
8586
#include <dispatch/time.h>
8687
#include <dispatch/object.h>
8788
#include <dispatch/queue.h>

os/stubs.h renamed to src/stubs_internal.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
#ifndef __OS_STUBS__
2-
#define __OS_STUBS__
3-
1+
// forward declarations for functions we are stubbing out
2+
// in the intial linux port.
43

4+
#ifndef __DISPATCH__STUBS__INTERNAL
5+
#define __DISPATCH__STUBS__INTERNAL
56

67
int sysctlbyname(const char *name, void *oldp, size_t *oldlenp,
78
void *newp, size_t newlen);

0 commit comments

Comments
 (0)