From f20f1f994ac375ab96cc8a38075b99aa20041b3f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 1 Nov 2004 23:37:12 +0000 Subject: r3445: made the gtk tooks use minimal includes. This approximately halves the total include lines in compiling C files in Samba (the .gch file is now 5M instead of 12M) This also gets rid of the silly gtk compile warning for non-gtk code (This used to be commit 8ebd20cf551c8c1fad98ec723d91873fa202b85a) --- source4/include/includes.h | 5 ----- source4/include/system/wait.h | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 source4/include/system/wait.h (limited to 'source4/include') diff --git a/source4/include/includes.h b/source4/include/includes.h index a9198dbc1d..192ec548fd 100644 --- a/source4/include/includes.h +++ b/source4/include/includes.h @@ -161,9 +161,6 @@ #include -#ifdef HAVE_SYS_WAIT_H -#include -#endif #ifdef HAVE_CTYPE_H #include #endif @@ -521,8 +518,6 @@ extern int errno; #include "registry.h" #include "rap.h" #include "ldap_server/ldap_server.h" -#include "gtk/common/gtk-smb.h" -#include "gtk/common/select.h" #include "libnet/libnet.h" #include "utils/net/net.h" diff --git a/source4/include/system/wait.h b/source4/include/system/wait.h new file mode 100644 index 0000000000..29e5c6fe66 --- /dev/null +++ b/source4/include/system/wait.h @@ -0,0 +1,25 @@ +/* + Unix SMB/CIFS implementation. + + waitpid system include wrappers + + Copyright (C) Andrew Tridgell 2004 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#ifdef HAVE_SYS_WAIT_H +#include +#endif -- cgit