From a593107d9ec34f26155afef3e357501ec203f9bf Mon Sep 17 00:00:00 2001 From: Bruce Momjian <bruce@momjian.us> Date: Sun, 4 Oct 1998 15:35:12 +0000 Subject: [PATCH] Add prototype include to inet types. --- src/backend/utils/adt/inet_net_ntop.c | 5 ++++- src/backend/utils/adt/inet_net_pton.c | 5 ++++- src/backend/utils/adt/ip.c | 3 ++- src/backend/utils/adt/mac.c | 4 ++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/backend/utils/adt/inet_net_ntop.c b/src/backend/utils/adt/inet_net_ntop.c index 655f8ba62e6..6d835df0c07 100644 --- a/src/backend/utils/adt/inet_net_ntop.c +++ b/src/backend/utils/adt/inet_net_ntop.c @@ -16,7 +16,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$Id: inet_net_ntop.c,v 1.1 1998/10/03 05:40:48 momjian Exp $"; +static const char rcsid[] = "$Id: inet_net_ntop.c,v 1.2 1998/10/04 15:35:08 momjian Exp $"; #endif @@ -30,6 +30,9 @@ static const char rcsid[] = "$Id: inet_net_ntop.c,v 1.1 1998/10/03 05:40:48 momj #include <string.h> #include <stdlib.h> +#include <postgres.h> +#include <utils/builtins.h> + #ifdef SPRINTF_CHAR #define SPRINTF(x) strlen(sprintf/**/x) #else diff --git a/src/backend/utils/adt/inet_net_pton.c b/src/backend/utils/adt/inet_net_pton.c index 8b3ae41127f..44f905f659c 100644 --- a/src/backend/utils/adt/inet_net_pton.c +++ b/src/backend/utils/adt/inet_net_pton.c @@ -16,7 +16,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$Id: inet_net_pton.c,v 1.1 1998/10/03 05:40:49 momjian Exp $"; +static const char rcsid[] = "$Id: inet_net_pton.c,v 1.2 1998/10/04 15:35:09 momjian Exp $"; #endif @@ -32,6 +32,9 @@ static const char rcsid[] = "$Id: inet_net_pton.c,v 1.1 1998/10/03 05:40:49 momj #include <string.h> #include <stdlib.h> +#include <postgres.h> +#include <utils/builtins.h> + #ifdef SPRINTF_CHAR #define SPRINTF(x) strlen(sprintf/**/x) #else diff --git a/src/backend/utils/adt/ip.c b/src/backend/utils/adt/ip.c index 7828688d53f..da892f80e26 100644 --- a/src/backend/utils/adt/ip.c +++ b/src/backend/utils/adt/ip.c @@ -3,7 +3,7 @@ * is for IP V4 CIDR notation, but prepared for V6: just * add the necessary bits where the comments indicate. * - * $Id: ip.c,v 1.2 1998/10/04 15:31:06 momjian Exp $ + * $Id: ip.c,v 1.3 1998/10/04 15:35:10 momjian Exp $ */ #include <sys/types.h> @@ -17,6 +17,7 @@ #include <postgres.h> #include <utils/palloc.h> +#include <utils/builtins.h> #include <utils/mac.h> /* diff --git a/src/backend/utils/adt/mac.c b/src/backend/utils/adt/mac.c index 8d09ea16c6e..cf21f9b86a7 100644 --- a/src/backend/utils/adt/mac.c +++ b/src/backend/utils/adt/mac.c @@ -1,14 +1,14 @@ /* * PostgreSQL type definitions for MAC addresses. * - * $Id: mac.c,v 1.1 1998/10/03 05:40:50 momjian Exp $ + * $Id: mac.c,v 1.2 1998/10/04 15:35:12 momjian Exp $ */ #include <stdio.h> #include <postgres.h> #include <utils/palloc.h> - +#include <utils/builtins.h> #include <utils/mac.h> manufacturer manufacturers[] = { -- GitLab