Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

define __offsetof for linux

  • Loading branch information...
commit eb87112814feda7a4fcdb445a4f422ae46b991d6 1 parent 1cd7aac
Jeremy Stashewsky authored October 26, 2010

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  Feersum.xs
5  Feersum.xs
@@ -11,6 +11,11 @@
11 11
 
12 12
 #include "ppport.h"
13 13
 #include "picohttpparser-git/picohttpparser.c"
  14
+
  15
+// seems this isn't defined by default for linux?
  16
+#ifndef __offsetof
  17
+# define __offsetof(type,field) __builtin_offsetof(type,field)
  18
+#endif
14 19
 #include "queue.h"
15 20
 
16 21
 #ifdef __GNUC__

0 notes on commit eb87112

Please sign in to comment.
Something went wrong with that request. Please try again.