LDFLAGS += -Wl,-soname,$(soname)
endif
+ifeq ($(uname_s),FreeBSD)
+ format := elf
+ LDFLAGS += -Wl,-soname,$(soname)
+endif
+
ifeq ($(format),elf)
# On ELf-based systems, the following conventions apply (see dhweeler's
# Program Library HOWTO):
osl.h: osl.h.in osl_errors.h Makefile
cat osl.h.in osl_errors.h > $@
clean:
- rm -f *.o $(realname) osl.h osl_errors.h errtab.h fsck.cmdline.h fsck.cmdline.c
+ rm -f *.o $(realname) osl.h osl_errors.h errtab.h fsck.cmdline.h \
+ fsck.cmdline.c oslfsck
install: all
$(MKDIR) $(libdir) $(includedir)
return 1;
}
+/*
+ * It's OK to call this with result = rb_node = NULL. If result is not NULL,
+ * and rb key was not found, result points to the parent node.
+ */
static int search_rbtree(const struct osl_object *obj,
const struct osl_table *t, unsigned col_num,
struct rb_node **result, struct rb_node ***rb_link)
/** \file osl.h User interface for the object storage layer. */
#include <sys/mman.h>
+#include <inttypes.h>
/** Export all declarations in this file. */
#pragma GCC visibility push(default)