From 3066f9b48df41228079b06740ca5245ea4f36c45 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Sun, 20 Mar 2022 17:37:56 +0000 Subject: [PATCH] update header files --- src/Simplex/Messaging/Transport/KeepAlive.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Simplex/Messaging/Transport/KeepAlive.hs b/src/Simplex/Messaging/Transport/KeepAlive.hs index a9f21652d..476c2f2b6 100644 --- a/src/Simplex/Messaging/Transport/KeepAlive.hs +++ b/src/Simplex/Messaging/Transport/KeepAlive.hs @@ -6,13 +6,13 @@ module Simplex.Messaging.Transport.KeepAlive where import Foreign.C (CInt (..)) import Network.Socket -foreign import capi "sys/socket.h value TCP_KEEPCNT" tcpKeepCnt :: CInt +foreign import capi "netinet/tcp.h value TCP_KEEPCNT" tcpKeepCnt :: CInt -foreign import capi "sys/socket.h value TCP_KEEPIDLE" tcpKeepIdle :: CInt +foreign import capi "netinet/tcp.h value TCP_KEEPIDLE" tcpKeepIdle :: CInt -foreign import capi "sys/socket.h value TCP_KEEPINTVL" tcpKeepIntvl :: CInt +foreign import capi "netinet/tcp.h value TCP_KEEPINTVL" tcpKeepIntvl :: CInt -foreign import capi "sys/socket.h value SOL_TCP" solTcp :: CInt +foreign import capi "netinet/tcp.h value SOL_TCP" solTcp :: CInt data KeepAliveOpts = KeepAliveOpts { keepCnt :: Int,