Browse Source

Fix build for x32

Christoph Biedl 3 years ago
parent
commit
921a4f74db

+ 1 - 1
debian/patches/cherry-pick.v2.9.4-9-g4f15b7d.fix-sizeof-http-parser-assert.patch

@@ -19,7 +19,7 @@ Comment: Changed again to make build pass on i386, see bug URL in previous line
  
    printf("sizeof(http_parser) = %u\n", (unsigned int)sizeof(http_parser));
 +
-+#if defined(__i386__) || defined(__x86_64__)
++#if (defined(__i386__) || defined(__x86_64__)) && !defined (__ILP32__)
 +  /* Should be 32 on both 32 bits and 64 bits x86 because of struct padding,
 +   * see https://github.com/nodejs/http-parser/issues/507.
 +   */