Skip to content

Commit

Permalink
Drop system includes from inet_pton/inet_ntop compatibility wrappers
Browse files Browse the repository at this point in the history
As both of these compatibility wrappers include git-compat-utils.h,
all of the system includes were redundant.

Dropping these system includes also makes git-compat-utils.h the first
include which avoids a compiler warning on Solaris due to the
redefinition of _FILE_OFFSET_BITS.

Signed-off-by: Ben Walton <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
Ben Walton authored and gitster committed Feb 6, 2012
1 parent 406da78 commit cd4c4e2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions compat/inet_ntop.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@
* SOFTWARE.
*/

#include <errno.h>
#include <sys/types.h>

#include "../git-compat-util.h"

#include <stdio.h>
#include <string.h>

#ifndef NS_INADDRSZ
#define NS_INADDRSZ 4
#endif
Expand Down
6 changes: 0 additions & 6 deletions compat/inet_pton.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#include <errno.h>
#include <sys/types.h>

#include "../git-compat-util.h"

#include <stdio.h>
#include <string.h>

#ifndef NS_INT16SZ
#define NS_INT16SZ 2
#endif
Expand Down

0 comments on commit cd4c4e2

Please sign in to comment.