Add NO_ANDROID_HEADERS define, to work around Android headers
which Ubuntu lacks.
diff --git a/Makefile b/Makefile
index c4fe63c..3ce2b43 100644
--- a/Makefile
+++ b/Makefile
@@ -77,9 +77,10 @@
 	$(CC) $(DEFINES) -I${TARGET_OUT} -c -o $@ $<
 
 OBJFILES := $(patsubst %.c,$(TARGET_OUT)/%.o,$(LOCAL_SRC_FILES))
+DEFINES := -DNO_ANDROID_HEADERS
 
 toolbox: $(TOOLS_H) $(OBJFILES)
-	$(CC) -o $(TARGET_OUT)/$(TARGET) $(OBJFILES) $(LIBRARIES)
+	$(CC) -o $(TARGET_OUT)/$(TARGET) $(DEFINES) $(OBJFILES) $(LIBRARIES)
 
 # Make #!/system/bin/toolbox launchers for each tool.
 #
diff --git a/reboot.c b/reboot.c
index aebe185..89c9fce 100644
--- a/reboot.c
+++ b/reboot.c
@@ -1,7 +1,12 @@
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
+#ifdef NO_ANDROID_HEADERS
+#include <linux/reboot.h>
+#define RB_AUTOBOOT     LINUX_REBOOT_CMD_RESTART
+#else
 #include <sys/reboot.h>
+#endif
 #include <unistd.h>
 
 int reboot_main(int argc, char *argv[])