Skip to content

Commit

Permalink
Move #include <sys/select.h> and <sys/ioctl.h> to git-compat-util.h.
Browse files Browse the repository at this point in the history
... since all system headers are pulled in via git-compat-util.h

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Johannes Sixt authored and Junio C Hamano committed Nov 14, 2007
1 parent 85dadc3 commit 80bbe72
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions git-compat-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
#include <fnmatch.h>
#include <sys/poll.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/select.h>
#include <assert.h>
#include <regex.h>
#include <netinet/in.h>
Expand Down
1 change: 0 additions & 1 deletion help.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "builtin.h"
#include "exec_cmd.h"
#include "common-cmds.h"
#include <sys/ioctl.h>

/* most GUI terminals set COLUMNS (although some don't export it) */
static int term_columns(void)
Expand Down
2 changes: 0 additions & 2 deletions pager.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include "cache.h"

#include <sys/select.h>

/*
* This is split up from the rest of git so that we might do
* something different on Windows, for example.
Expand Down

0 comments on commit 80bbe72

Please sign in to comment.