forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit03cf221
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
2 files changed
+2
-2
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + |
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
12 | 11 |
| |
13 |
| - | |
| 12 | + | |
14 | 13 |
| |
15 | 14 |
| |
16 | 15 |
| |
|
0 commit comments
Comments
(0)