Skip to content

Instantly share code, notes, and snippets.

@sindastra
Created April 9, 2016 19:29
Show Gist options
  • Save sindastra/4756fb56d419e2719cf3d13784e470d5 to your computer and use it in GitHub Desktop.
Save sindastra/4756fb56d419e2719cf3d13784e470d5 to your computer and use it in GitHub Desktop.
cap2hccap.c patch for OSX
--- cap2hccap.c 2012-06-30 07:53:03.000000000 +0200
+++ cap2hccap-osx.c 2016-04-09 21:09:59.000000000 +0200
@@ -7,6 +7,11 @@
#include <sys/types.h>
#include <string.h>
#include <libgen.h>
+
+#ifdef __APPLE__
+ #include <limits.h>
+#endif
+
#ifdef UINT16
#define u_int16_t UINT16;
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment