You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cc_library(
name="cbits",
# XXX: Can't do this yet, because I don't know how to make HsFFI.h visible# to this library (needs some dep from ghc).#srcs = glob(["cbits/*.c"]),hdrs= [
"include/HsNet.h",
"include/HsNetworkConfig.h",
],
includes= ["include"],
defines= ["_GNU_SOURCE"], # <--- **HERE**
)
haskell_library(
name="network",
srcs= [
"Network.hs",
"Network/BSD.hsc",
"Network/Socket.hsc",
"Network/Socket/ByteString.hsc",
"Network/Socket/ByteString/IOVec.hsc",
"Network/Socket/ByteString/Internal.hs",
"Network/Socket/ByteString/Lazy.hs",
"Network/Socket/ByteString/Lazy/Posix.hs",
"Network/Socket/ByteString/MsgHdr.hsc",
"Network/Socket/Internal.hsc",
"Network/Socket/Types.hsc",
],
compiler_flags= [
"-XCPP",
# XXX: Hack because for some reason it doesn't end up being defined."-DCALLCONV=ccall",
],
prebuilt_dependencies= [
"base",
"bytestring",
],
visibility= ["//visibility:public"],
deps= [":cbits"], # <--- **USED HERE**
)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: