I'm trying to build an application that uses libzfs_core.h
My Makefile.am is as follows:
Its my understanding that the NEED_SOLARIS_BOOLEAN define should enable the
in /usr/src/sys/contrib/openzfs/include/os/freebsd/spl/sys/types.h
Any ideas why this isn't working?
Code:
In file included from /usr/src/sys/contrib/openzfs/include/libzfs_core.h:35:
/usr/src/sys/contrib/openzfs/include/sys/fs/zfs.h:306:1: error: unknown type name 'boolean_t'
boolean_t zfs_prop_readonly(zfs_prop_t);
^
/usr/src/sys/contrib/openzfs/include/sys/fs/zfs.h:307:1: error: unknown type name 'boolean_t'
boolean_t zfs_prop_visible(zfs_prop_t prop);
Lots more errors about the same thing...
My Makefile.am is as follows:
Code:
bin_PROGRAMS= \
ztdsd-daemon
ztdsd_daemon_SOURCES= \
main.cpp \
serversocket.cpp \
clientsocket.cpp \
ztdsp_packetizer.cpp \
transaction_manager.cpp \
statusfile.cpp
ztdsd_daemon_CXXFLAGS= @DEPS_CFLAGS@ \
-Wall \
-pthread \
-std="c++11" \
-DNEED_SOLARIS_BOOLEAN \
-I/usr/src/sys/contrib/openzfs/include
ztdsd_daemon_LDFLAGS= -export-dynamic -rdynamic $(DEPS_LIBS) -lzfs
Its my understanding that the NEED_SOLARIS_BOOLEAN define should enable the
Code:
typedef enum { B_FALSE, B_TRUE } boolean_t;
in /usr/src/sys/contrib/openzfs/include/os/freebsd/spl/sys/types.h
Any ideas why this isn't working?