Skip to content

Commit ad5069b

Browse files
committed
fix ffi import error
1 parent 390a052 commit ad5069b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lightbug_http/_libc.mojo

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from utils import StaticTuple
22
from sys.ffi import external_call
33
from sys.info import sizeof, os_is_windows, os_is_macos, os_is_linux
4-
from sys.ffi import c_char, c_int, c_size_t, c_uchar, c_ushort
4+
from sys.ffi import c_char, c_int, c_size_t, c_ssize_t, c_uchar, c_ushort, c_uint
55
from memory import memcpy, UnsafePointer, stack_allocation
66
from lightbug_http.io.bytes import Bytes
77

@@ -14,17 +14,9 @@ alias EPROTONOSUPPORT = 93
1414
alias SUCCESS = 0
1515
alias GRND_NONBLOCK: UInt8 = 1
1616

17-
alias char_UnsafePointer = UnsafePointer[c_char]
18-
1917
# Adapted from https://github.com/crisadamo/mojo-Libc . Huge thanks to Cristian!
2018
# C types
2119
alias c_void = UInt8
22-
alias c_uchar = UInt8
23-
alias c_ushort = UInt16
24-
alias c_uint = UInt32
25-
26-
# `Int` is known to be machine's width
27-
alias c_ssize_t = Int
2820

2921

3022
# --- ( error.h Constants )-----------------------------------------------------

0 commit comments

Comments
 (0)