From b44ad0d8c76b0d8b7c0da824ca334c23da97453c Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 2 Dec 2013 05:27:06 +0100 Subject: [PATCH] Replace PF_* with AF_*. PF_* is no longer specified in POSIX. --- src/tlsproxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tlsproxy.c b/src/tlsproxy.c index 6d49253..160a236 100644 --- a/src/tlsproxy.c +++ b/src/tlsproxy.c @@ -150,9 +150,9 @@ int main(int argc, char **argv) { } #ifdef USE_IPV4_ONLY - server_socket = socket(PF_INET, SOCK_STREAM, 0); + server_socket = socket(AF_INET, SOCK_STREAM, 0); #else - server_socket = socket(PF_INET6, SOCK_STREAM, 0); + server_socket = socket(AF_INET6, SOCK_STREAM, 0); #endif if (server_socket < 0) { perror("socket()"); -- 2.45.2