Skip to content

Commit a593107

Browse files
committed
Add prototype include to inet types.
1 parent f5a2192 commit a593107

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

src/backend/utils/adt/inet_net_ntop.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
#if defined(LIBC_SCCS) && !defined(lint)
19-
static const char rcsid[] = "$Id: inet_net_ntop.c,v 1.1 1998/10/03 05:40:48 momjian Exp $";
19+
static const char rcsid[] = "$Id: inet_net_ntop.c,v 1.2 1998/10/04 15:35:08 momjian Exp $";
2020

2121
#endif
2222

@@ -30,6 +30,9 @@ static const char rcsid[] = "$Id: inet_net_ntop.c,v 1.1 1998/10/03 05:40:48 momj
3030
#include <string.h>
3131
#include <stdlib.h>
3232

33+
#include <postgres.h>
34+
#include <utils/builtins.h>
35+
3336
#ifdef SPRINTF_CHAR
3437
#define SPRINTF(x) strlen(sprintf/**/x)
3538
#else

src/backend/utils/adt/inet_net_pton.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
#if defined(LIBC_SCCS) && !defined(lint)
19-
static const char rcsid[] = "$Id: inet_net_pton.c,v 1.1 1998/10/03 05:40:49 momjian Exp $";
19+
static const char rcsid[] = "$Id: inet_net_pton.c,v 1.2 1998/10/04 15:35:09 momjian Exp $";
2020

2121
#endif
2222

@@ -32,6 +32,9 @@ static const char rcsid[] = "$Id: inet_net_pton.c,v 1.1 1998/10/03 05:40:49 momj
3232
#include <string.h>
3333
#include <stdlib.h>
3434

35+
#include <postgres.h>
36+
#include <utils/builtins.h>
37+
3538
#ifdef SPRINTF_CHAR
3639
#define SPRINTF(x) strlen(sprintf/**/x)
3740
#else

src/backend/utils/adt/ip.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* is for IP V4 CIDR notation, but prepared for V6: just
44
* add the necessary bits where the comments indicate.
55
*
6-
* $Id: ip.c,v 1.2 1998/10/04 15:31:06 momjian Exp $
6+
* $Id: ip.c,v 1.3 1998/10/04 15:35:10 momjian Exp $
77
*/
88

99
#include <sys/types.h>
@@ -17,6 +17,7 @@
1717

1818
#include <postgres.h>
1919
#include <utils/palloc.h>
20+
#include <utils/builtins.h>
2021
#include <utils/mac.h>
2122

2223
/*

src/backend/utils/adt/mac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*
22
* PostgreSQL type definitions for MAC addresses.
33
*
4-
* $Id: mac.c,v 1.1 1998/10/03 05:40:50 momjian Exp $
4+
* $Id: mac.c,v 1.2 1998/10/04 15:35:12 momjian Exp $
55
*/
66

77
#include <stdio.h>
88

99
#include <postgres.h>
1010
#include <utils/palloc.h>
11-
11+
#include <utils/builtins.h>
1212
#include <utils/mac.h>
1313

1414
manufacturer manufacturers[] = {

0 commit comments

Comments
 (0)