Permalink
Browse files

define __offsetof for linux

  • Loading branch information...
1 parent 1cd7aac commit eb87112814feda7a4fcdb445a4f422ae46b991d6 @stash committed Oct 26, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 Feersum.xs
View
@@ -11,6 +11,11 @@
#include "ppport.h"
#include "picohttpparser-git/picohttpparser.c"
+
+// seems this isn't defined by default for linux?
+#ifndef __offsetof
+# define __offsetof(type,field) __builtin_offsetof(type,field)
+#endif
#include "queue.h"
#ifdef __GNUC__

0 comments on commit eb87112

Please sign in to comment.