Print this page
3748 zfs headers should be C++ compatible
Submitted by: Justin Gibbs <justing@spectralogic.com>
Submitted by: Will Andrews <willa@spectralogic.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
*** 77,92 ****
--- 77,100 ----
.KEEP_STATE:
all: $(LIBS)
+ $(LIBS): libzpool_hdrck.o
+
lint: $(LINTLIB)
include ../../Makefile.targ
EXTPICS= $(DTRACE_OBJS:%=pics/%)
+ libzpool_hdrck.o: libzpool_hdrck.cpp
+ $(COMPILE.cc) -DB_FALSE=_B_FALSE -DB_TRUE=_B_TRUE -o $@ $^
+
+ libzpool_hdrck.cpp:
+ find .. -name '*.[ch]' | xargs grep -h '^#include <' > $@
+
pics/%.o: ../../../uts/common/fs/zfs/%.c ../common/zfs.h
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
pics/%.o: ../../../common/zfs/%.c ../common/zfs.h