Browse Source

Minor fixes to make hipack-c work on OpenBSD

Adrian Perez de Castro 1 month ago
parent
commit
e5de9d0095
2 changed files with 3 additions and 1 deletions
  1. 1 1
      Makefile
  2. 2 0
      tools/hipack-get.c

+ 1 - 1
Makefile

@@ -41,7 +41,7 @@ ${hipack_PATH}/tools/hipack-roundtrip: \
 	${hipack_PATH}/tools/hipack-roundtrip.o ${hipack}
 
 hipack-check: hipack-tools
-	@${hipack_PATH}/tools/run-tests
+	@bash --norc ${hipack_PATH}/tools/run-tests
 
 ${hipack_PATH}/hipack-writer.o: ${hipack_PATH}/fpconv/src/fpconv.c
 ${hipack_PATH}/fpconv/src/fpconv.c: ${hipack_PATH}/.gitmodules

+ 2 - 0
tools/hipack-get.c

@@ -11,9 +11,11 @@
 #include <errno.h>
 
 
+#if !defined(__OpenBSD__)
 /* Make sure that strtonum() is defined as "static". */
 static long long strtonum (const char*, long long, long long, const char**);
 #include "strtonum.c"
+#endif /* !__OpenBSD__ */
 
 
 int