[geany/geany] bfa93a: Remove the includes of <sys/types.h> and <sys/wait.h> from *.c
Dimitar Zhekov
git-noreply at xxxxx
Fri May 15 17:07:40 UTC 2015
Branch: refs/heads/master
Author: Dimitar Zhekov <dimitar.zhekov at gmail.com>
Committer: Dimitar Zhekov <dimitar.zhekov at gmail.com>
Date: Sun, 05 Apr 2015 15:49:28 UTC
Commit: bfa93af5cc3ee23cd049e5a144f2c393aba45e95
https://github.com/geany/geany/commit/bfa93af5cc3ee23cd049e5a144f2c393aba45e95
Log Message:
-----------
Remove the includes of <sys/types.h> and <sys/wait.h> from *.c
These are included from spawn.h under Unix now.
Also fixes spawn.c including <sys/wait.h> without <sys/types.h>
Modified Paths:
--------------
src/search.c
src/spawn.c
src/tools.c
Modified: src/search.c
5 lines changed, 0 insertions(+), 5 deletions(-)
===================================================================
@@ -50,11 +50,6 @@
#include <string.h>
#include <ctype.h>
-#ifdef G_OS_UNIX
-# include <sys/types.h>
-# include <sys/wait.h>
-#endif
-
#include <gdk/gdkkeysyms.h>
enum
Modified: src/spawn.c
3 lines changed, 0 insertions(+), 3 deletions(-)
===================================================================
@@ -1068,9 +1068,6 @@ gboolean spawn_sync(const gchar *working_directory, const gchar *command_line, g
/* tests, not part of the API */
#ifdef SPAWN_TEST
#include <stdio.h>
-#ifndef WIFEXITED
-#include <sys/wait.h> /* WIFEXITED */
-#endif
static gboolean read_line(const char *prompt, char *buffer, size_t size)
Modified: src/tools.c
5 lines changed, 0 insertions(+), 5 deletions(-)
===================================================================
@@ -46,11 +46,6 @@
#include <string.h>
#include <errno.h>
-#ifdef G_OS_UNIX
-# include <sys/types.h>
-# include <sys/wait.h>
-#endif
-
enum
{
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list