mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
20 lines
306 B
Nim
20 lines
306 B
Nim
discard """
|
|
disabled: true
|
|
"""
|
|
|
|
when defined(windows):
|
|
import winlean
|
|
else:
|
|
import posix
|
|
|
|
when defined(windows):
|
|
template orig: expr =
|
|
winlean
|
|
else:
|
|
template orig: expr =
|
|
posix
|
|
|
|
proc socket(domain, typ, protocol: int): int =
|
|
result = orig.socket(ord(domain), ord(typ), ord(protocol)))
|
|
|