summaryrefslogtreecommitdiff
path: root/dev-python/aiohttp/files/aiohttp-3.11.17-unbundle-llhttp.patch
blob: 500377eb46e684b5b2f6e41f0058c68da1b8268b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/aiohttp/_cparser.pxd b/aiohttp/_cparser.pxd
index c2cd5a92f..1b3be6d4e 100644
--- a/aiohttp/_cparser.pxd
+++ b/aiohttp/_cparser.pxd
@@ -1,7 +1,7 @@
 from libc.stdint cimport int32_t, uint8_t, uint16_t, uint64_t
 
 
-cdef extern from "../vendor/llhttp/build/llhttp.h":
+cdef extern from "llhttp.h":
 
     struct llhttp__internal_s:
         int32_t _index
diff --git a/setup.py b/setup.py
index c9a2c5c85..fe1a8101f 100644
--- a/setup.py
+++ b/setup.py
@@ -33,12 +33,9 @@ extensions = [
         [
             "aiohttp/_http_parser.c",
             "aiohttp/_find_header.c",
-            "vendor/llhttp/build/c/llhttp.c",
-            "vendor/llhttp/src/native/api.c",
-            "vendor/llhttp/src/native/http.c",
         ],
         define_macros=[("LLHTTP_STRICT_MODE", 0)],
-        include_dirs=["vendor/llhttp/build"],
+        libraries=["llhttp"],
     ),
     Extension("aiohttp._http_writer", ["aiohttp/_http_writer.c"]),
     Extension("aiohttp._websocket.reader_c", ["aiohttp/_websocket/reader_c.c"]),