summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Harsch <mike@harschsystems.com>2012-10-23 10:22:21 -0600
committerMike Harsch <mike@harschsystems.com>2012-10-23 10:22:21 -0600
commit9eae4e888d1d81239cdbbe7c17ce87ec58207dda (patch)
treea1612d8fc7c1c2a1aebd6f4b6fc311bcacc8b98d
parentdb6da700f19a57916cb15537d919e88cda59eadf (diff)
downloadlibnvpair-9eae4e888d1d81239cdbbe7c17ce87ec58207dda.tar.gz
enable build on darwinHEADmaster
-rw-r--r--nvpair.c2
-rw-r--r--test/Makefile2
2 files changed, 3 insertions, 1 deletions
diff --git a/nvpair.c b/nvpair.c
index fd118dd..616b55c 100644
--- a/nvpair.c
+++ b/nvpair.c
@@ -23,7 +23,9 @@
* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
*/
+#if !defined(__APPLE__)
#include <sys/stropts.h>
+#endif
//#include <sys/debug.h>
#include <assert.h>
#define ASSERT(x) assert(x)
diff --git a/test/Makefile b/test/Makefile
index 8ac15dc..add99d3 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -24,4 +24,4 @@ hellonv: hello_nv.c
$(CC) $(CPPFLAGS) $(CFLAGS) -o hello_nv hello_nv.c ../libnvpair.a
clean:
- rm -f $(OBJS) hello_nv
+ rm -rf $(OBJS) hello_nv hello_nv.dSYM/