Skip to content

Instantly share code, notes, and snippets.

@2bits
Created April 2, 2012 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2bits/2281194 to your computer and use it in GitHub Desktop.
Save 2bits/2281194 to your computer and use it in GitHub Desktop.
net-snmp-5.7.1 patch fixes compile error on OSX Lion, but you must create darwin11.h first
--- a/include/net-snmp/system/darwin11.h
+++ b/include/net-snmp/system/darwin11.h
@@ -44,9 +44,9 @@
/*
* This section defines Mac OS X 10.5 (and later) specific additions.
*/
-#define darwin 10
-#ifndef darwin10
-# define darwin10 darwin
+#define darwin 11
+#ifndef darwin11
+# define darwin11 darwin
#endif
/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment