Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit03cf221

Browse files
committed
Clean up test_ifaddrs a bit.
We customarily #include <netinet/in.h> before <arpa/inet.h>; accordingto our git history (cf commit527f8ba) there used to be platform(s)where <arpa/inet.h> didn't compile otherwise. That's probably notreally an issue anymore, but since test_ifaddrs.c is the one and onlyplace in our code that's not following that rule, bring it into line.Also remove #include <sys/socket.h>, as that's duplicative given thatlibpq/ifaddr.h does so (via pqcomm.h).In passing, add a .gitignore file so nobody accidentally commits thetest_ifaddrs executable, as I nearly did.I see no particular need to back-patch this, as it's just neatnik-ismconsidering we don't build test_ifaddrs by default, or even documentit anywhere.
1 parent95c1dbc commit03cf221

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/tools/ifaddrs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/test_ifaddrs

‎src/tools/ifaddrs/test_ifaddrs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88

99
#include"postgres.h"
1010

11-
#include<arpa/inet.h>
1211
#include<netinet/in.h>
13-
#include<sys/socket.h>
12+
#include<arpa/inet.h>
1413

1514
#include"libpq/ifaddr.h"
1615

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp