[PATCH 06/11] Move #include <sys/select.h> and <sys/ioctl.h> to git-compat-util.h.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: <git@...>, Johannes Sixt <johannes.sixt@...>
Date: Tuesday, November 13, 2007 - 4:05 pm

... since all system headers are pulled in via git-compat-util.h

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
---
 git-compat-util.h |    2 ++
 help.c            |    1 -
 pager.c           |    2 --
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/git-compat-util.h b/git-compat-util.h
index 7b29d1b..6a8b592 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -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>
diff --git a/help.c b/help.c
index 8217d97..d340b6a 100644
--- a/help.c
+++ b/help.c
@@ -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)
diff --git a/pager.c b/pager.c
index 8bac9d9..fb7a1a6 100644
--- a/pager.c
+++ b/pager.c
@@ -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.
-- 
1.5.3.5.1592.g0d6db

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 05/11] Use is_absolute_path() in sha1_file.c., Johannes Sixt, (Tue Nov 13, 4:05 pm)
Re: [PATCH 05/11] Use is_absolute_path() in sha1_file.c., Johannes Schindelin, (Tue Nov 13, 5:39 pm)
Re: [PATCH 05/11] Use is_absolute_path() in sha1_file.c., Johannes Sixt, (Tue Nov 13, 5:43 pm)
Re: [PATCH 05/11] Use is_absolute_path() in sha1_file.c., Robin Rosenberg, (Wed Nov 14, 5:57 pm)
Re: [PATCH 05/11] Use is_absolute_path() in sha1_file.c., Johannes Schindelin, (Tue Nov 13, 5:48 pm)
[PATCH 06/11] Move #include <sys/select.h> and <sys..., Johannes Sixt, (Tue Nov 13, 4:05 pm)