]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - compat/inet_ntop.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / compat / inet_ntop.h
index 9811f9ca22d46ca4223bc7a8947178e4b42ffae5..570c33d8ecde0dcf0b74a98620fd7c984bea7bd9 100644 (file)
@@ -1,8 +1,16 @@
+/*
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
 #ifndef _INC_INET_NTOP_H
 #define _INC_INET_NTOP_H
 
 /* Use the system provided version where possible */
-#if !HAVE_INET_NTOP
+#if !HAVE_DECL_INET_NTOP
 
 /* char *
 * inet_ntop(af, src, dst, size)
 *      Paul Vixie, 1996.
 */
 SQUIDCEXTERN const char * xinet_ntop(int af, const void *src, char *dst, size_t size);
+#ifndef inet_ntop
 #define inet_ntop xinet_ntop
-
 #endif
+
+#endif /* HAVE_DECL_INET_NTOP */
 #endif /* _INC_INET_NTOP_H */
+