From b2d3dcf16979a54ecc3cf4fbfc6ee0e4a4f3521b Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 2 Mar 2017 20:33:23 -0800 Subject: [PATCH] Include config_ac.h from all source files --- common/fifo.c | 4 ++++ common/file.c | 4 ++++ common/list.c | 4 ++++ common/list16.c | 4 ++++ common/log.c | 4 ++++ common/pixman-region.c | 4 ++++ common/ssl_calls.c | 4 ++++ common/thread_calls.c | 4 ++++ common/trans.c | 4 ++++ genkeymap/genkeymap.c | 4 ++++ keygen/keygen.c | 4 ++++ libxrdp/libxrdp.c | 4 ++++ libxrdp/xrdp_bitmap32_compress.c | 4 ++++ libxrdp/xrdp_bitmap_compress.c | 4 ++++ libxrdp/xrdp_caps.c | 4 ++++ libxrdp/xrdp_channel.c | 4 ++++ libxrdp/xrdp_fastpath.c | 4 ++++ libxrdp/xrdp_iso.c | 4 ++++ libxrdp/xrdp_jpeg_compress.c | 4 ++++ libxrdp/xrdp_mcs.c | 4 ++++ libxrdp/xrdp_mppc_enc.c | 4 ++++ libxrdp/xrdp_orders.c | 4 ++++ libxrdp/xrdp_orders_rail.c | 4 ++++ libxrdp/xrdp_rdp.c | 4 ++++ libxrdp/xrdp_sec.c | 4 ++++ libxrdp/xrdp_surface.c | 4 ++++ mc/mc.c | 4 ++++ neutrinordp/xrdp-color.c | 4 ++++ neutrinordp/xrdp-neutrinordp.c | 4 ++++ sesman/access.c | 4 ++++ sesman/chansrv/chansrv.c | 4 ++++ sesman/chansrv/chansrv_common.c | 4 ++++ sesman/chansrv/chansrv_fuse.c | 4 ++++ sesman/chansrv/clipboard.c | 4 ++++ sesman/chansrv/clipboard_file.c | 4 ++++ sesman/chansrv/devredir.c | 4 ++++ sesman/chansrv/drdynvc.c | 4 ++++ sesman/chansrv/fifo.c | 4 ++++ sesman/chansrv/irp.c | 4 ++++ sesman/chansrv/rail.c | 4 ++++ sesman/chansrv/smartcard.c | 4 ++++ sesman/chansrv/smartcard_pcsc.c | 4 ++++ sesman/chansrv/sound.c | 4 ++++ sesman/chansrv/xcommon.c | 4 ++++ sesman/config.c | 4 ++++ sesman/env.c | 4 ++++ sesman/libscp/libscp_connection.c | 4 ++++ sesman/libscp/libscp_init.c | 4 ++++ sesman/libscp/libscp_lock.c | 4 ++++ sesman/libscp/libscp_session.c | 4 ++++ sesman/libscp/libscp_tcp.c | 4 ++++ sesman/libscp/libscp_v0.c | 4 ++++ sesman/libscp/libscp_v1c.c | 4 ++++ sesman/libscp/libscp_v1c_mng.c | 4 ++++ sesman/libscp/libscp_v1s.c | 4 ++++ sesman/libscp/libscp_v1s_mng.c | 4 ++++ sesman/libscp/libscp_vX.c | 4 ++++ sesman/scp.c | 4 ++++ sesman/scp_v0.c | 4 ++++ sesman/scp_v1.c | 4 ++++ sesman/scp_v1_mng.c | 4 ++++ sesman/sesman.c | 4 ++++ sesman/sig.c | 4 ++++ sesman/tools/config.c | 4 ++++ sesman/tools/dis.c | 4 ++++ sesman/tools/sesadmin.c | 4 ++++ sesman/tools/sesrun.c | 4 ++++ sesman/tools/sestest.c | 4 ++++ sesman/tools/tcp.c | 4 ++++ sesman/tools/xcon.c | 4 ++++ sesman/verify_user.c | 4 ++++ sesman/verify_user_bsd.c | 4 ++++ sesman/verify_user_kerberos.c | 4 ++++ sesman/verify_user_pam.c | 4 ++++ sesman/verify_user_pam_userpass.c | 4 ++++ sesman/xauth.c | 4 ++++ vnc/vnc.c | 4 ++++ xrdp/funcs.c | 4 ++++ xrdp/lang.c | 4 ++++ xrdp/xrdp.c | 4 ++++ xrdp/xrdp_bitmap.c | 4 ++++ xrdp/xrdp_cache.c | 4 ++++ xrdp/xrdp_encoder.c | 4 ++++ xrdp/xrdp_font.c | 4 ++++ xrdp/xrdp_listen.c | 4 ++++ xrdp/xrdp_login_wnd.c | 4 ++++ xrdp/xrdp_painter.c | 4 ++++ xrdp/xrdp_process.c | 4 ++++ xrdp/xrdp_region.c | 4 ++++ xrdp/xrdp_wm.c | 4 ++++ xrdp/xrdpwin.c | 4 ++++ xrdpapi/simple.c | 4 ++++ xrdpapi/vrplayer.c | 4 ++++ xrdpapi/xrdpapi.c | 4 ++++ xrdpvr/xrdpvr.c | 4 ++++ xup/xup.c | 4 ++++ 96 files changed, 384 insertions(+) diff --git a/common/fifo.c b/common/fifo.c index e3f6f3bc..61e30144 100644 --- a/common/fifo.c +++ b/common/fifo.c @@ -18,6 +18,10 @@ * FIFO implementation to store pointer to data struct */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "fifo.h" #include "os_calls.h" diff --git a/common/file.c b/common/file.c index 66d781f7..236ac3d8 100644 --- a/common/file.c +++ b/common/file.c @@ -18,6 +18,10 @@ * read a config file */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "arch.h" #include "os_calls.h" #include "list.h" diff --git a/common/list.c b/common/list.c index b95b3444..71f2d84a 100644 --- a/common/list.c +++ b/common/list.c @@ -18,6 +18,10 @@ * simple list */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "arch.h" #include "os_calls.h" #include "list.h" diff --git a/common/list16.c b/common/list16.c index 5e5c3d7f..7ed4a169 100644 --- a/common/list16.c +++ b/common/list16.c @@ -18,6 +18,10 @@ * simple list */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "arch.h" #include "os_calls.h" #include "list16.h" diff --git a/common/log.c b/common/log.c index c8703df8..e8e64f2f 100644 --- a/common/log.c +++ b/common/log.c @@ -16,6 +16,10 @@ * limitations under the License. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include #include diff --git a/common/pixman-region.c b/common/pixman-region.c index 2d199de8..eb3fd179 100644 --- a/common/pixman-region.c +++ b/common/pixman-region.c @@ -63,6 +63,10 @@ * PERFORMANCE OF THIS SOFTWARE. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #define PIXREGION_NIL(reg) ((reg)->data && !(reg)->data->numRects) /* not a region */ #define PIXREGION_NAR(reg) ((reg)->data == pixman_broken_data) diff --git a/common/ssl_calls.c b/common/ssl_calls.c index 9829a97b..1e50270b 100644 --- a/common/ssl_calls.c +++ b/common/ssl_calls.c @@ -19,6 +19,10 @@ * ssl calls */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include /* needed for openssl headers */ #include #include diff --git a/common/thread_calls.c b/common/thread_calls.c index d828b353..addad6fd 100644 --- a/common/thread_calls.c +++ b/common/thread_calls.c @@ -18,6 +18,10 @@ * thread calls */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #if defined(_WIN32) #include #elif defined(__APPLE__) diff --git a/common/trans.c b/common/trans.c index 8f2c4376..f77f959d 100644 --- a/common/trans.c +++ b/common/trans.c @@ -18,6 +18,10 @@ * generic transport */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "os_calls.h" #include "trans.h" #include "arch.h" diff --git a/genkeymap/genkeymap.c b/genkeymap/genkeymap.c index 1d640b1f..03e54d8c 100644 --- a/genkeymap/genkeymap.c +++ b/genkeymap/genkeymap.c @@ -32,6 +32,10 @@ en-uk UK English 0x809 */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include #include diff --git a/keygen/keygen.c b/keygen/keygen.c index 7ec1f9fe..bd24b0b9 100644 --- a/keygen/keygen.c +++ b/keygen/keygen.c @@ -25,6 +25,10 @@ */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "os_calls.h" #include "ssl_calls.h" #include "arch.h" diff --git a/libxrdp/libxrdp.c b/libxrdp/libxrdp.c index 25d25a99..074e4ddd 100644 --- a/libxrdp/libxrdp.c +++ b/libxrdp/libxrdp.c @@ -18,6 +18,10 @@ * this is the interface to libxrdp */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libxrdp.h" #include "xrdp_orders_rail.h" diff --git a/libxrdp/xrdp_bitmap32_compress.c b/libxrdp/xrdp_bitmap32_compress.c index daec9f28..4f6cf253 100644 --- a/libxrdp/xrdp_bitmap32_compress.c +++ b/libxrdp/xrdp_bitmap32_compress.c @@ -24,6 +24,10 @@ RDP 6.0 Bitmap Compression http://msdn.microsoft.com/en-us/library/cc241877.aspx */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libxrdp.h" #define FLAGS_RLE 0x10 diff --git a/libxrdp/xrdp_bitmap_compress.c b/libxrdp/xrdp_bitmap_compress.c index 56898776..91eea60a 100644 --- a/libxrdp/xrdp_bitmap_compress.c +++ b/libxrdp/xrdp_bitmap_compress.c @@ -20,6 +20,10 @@ * This does not do 32 bpp compression, nscodec, rfx, etc */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libxrdp.h" #define BC_MAX_BYTES (16 * 1024) diff --git a/libxrdp/xrdp_caps.c b/libxrdp/xrdp_caps.c index c4ec7b02..43d5d949 100644 --- a/libxrdp/xrdp_caps.c +++ b/libxrdp/xrdp_caps.c @@ -19,6 +19,10 @@ * RDP Capability Sets */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libxrdp.h" /*****************************************************************************/ diff --git a/libxrdp/xrdp_channel.c b/libxrdp/xrdp_channel.c index 2da0ecdb..9fd9feab 100644 --- a/libxrdp/xrdp_channel.c +++ b/libxrdp/xrdp_channel.c @@ -18,6 +18,10 @@ * channel layer */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libxrdp.h" /* todo, move these to constants.h */ diff --git a/libxrdp/xrdp_fastpath.c b/libxrdp/xrdp_fastpath.c index 33e9c9d0..41f6340b 100644 --- a/libxrdp/xrdp_fastpath.c +++ b/libxrdp/xrdp_fastpath.c @@ -17,6 +17,10 @@ * limitations under the License. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libxrdp.h" /*****************************************************************************/ diff --git a/libxrdp/xrdp_iso.c b/libxrdp/xrdp_iso.c index b89e1616..861a5e5d 100644 --- a/libxrdp/xrdp_iso.c +++ b/libxrdp/xrdp_iso.c @@ -19,6 +19,10 @@ * iso layer */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libxrdp.h" #include "log.h" diff --git a/libxrdp/xrdp_jpeg_compress.c b/libxrdp/xrdp_jpeg_compress.c index d337af1b..e516861d 100644 --- a/libxrdp/xrdp_jpeg_compress.c +++ b/libxrdp/xrdp_jpeg_compress.c @@ -18,6 +18,10 @@ * jpeg compressor */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libxrdp.h" #if defined(XRDP_TJPEG) diff --git a/libxrdp/xrdp_mcs.c b/libxrdp/xrdp_mcs.c index 8ed821e9..f66398ed 100644 --- a/libxrdp/xrdp_mcs.c +++ b/libxrdp/xrdp_mcs.c @@ -18,6 +18,10 @@ * mcs layer */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libxrdp.h" #include "log.h" diff --git a/libxrdp/xrdp_mppc_enc.c b/libxrdp/xrdp_mppc_enc.c index ff6caf4d..93ff84a2 100644 --- a/libxrdp/xrdp_mppc_enc.c +++ b/libxrdp/xrdp_mppc_enc.c @@ -18,6 +18,10 @@ * limitations under the License. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libxrdp.h" #define MPPC_ENC_DEBUG 0 diff --git a/libxrdp/xrdp_orders.c b/libxrdp/xrdp_orders.c index b0c28ed8..3ce0ecb5 100644 --- a/libxrdp/xrdp_orders.c +++ b/libxrdp/xrdp_orders.c @@ -18,6 +18,10 @@ * orders */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libxrdp.h" #if defined(XRDP_NEUTRINORDP) diff --git a/libxrdp/xrdp_orders_rail.c b/libxrdp/xrdp_orders_rail.c index 3c5d5b63..19da4c2c 100644 --- a/libxrdp/xrdp_orders_rail.c +++ b/libxrdp/xrdp_orders_rail.c @@ -16,6 +16,10 @@ * limitations under the License. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libxrdp.h" #include "xrdp_rail.h" diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c index 571ee093..c43d8ca7 100644 --- a/libxrdp/xrdp_rdp.c +++ b/libxrdp/xrdp_rdp.c @@ -18,6 +18,10 @@ * rdp layer */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include "libxrdp.h" #include "log.h" diff --git a/libxrdp/xrdp_sec.c b/libxrdp/xrdp_sec.c index b5d33863..2ef51d49 100644 --- a/libxrdp/xrdp_sec.c +++ b/libxrdp/xrdp_sec.c @@ -18,6 +18,10 @@ * secure layer */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libxrdp.h" #include "log.h" diff --git a/libxrdp/xrdp_surface.c b/libxrdp/xrdp_surface.c index 701ee3b5..85978c0a 100644 --- a/libxrdp/xrdp_surface.c +++ b/libxrdp/xrdp_surface.c @@ -17,6 +17,10 @@ * limitations under the License. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libxrdp.h" #include "freerdp/codec/rfx.h" diff --git a/mc/mc.c b/mc/mc.c index 71d2d9c0..04c83d46 100644 --- a/mc/mc.c +++ b/mc/mc.c @@ -18,6 +18,10 @@ * media center */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "mc.h" /*****************************************************************************/ diff --git a/neutrinordp/xrdp-color.c b/neutrinordp/xrdp-color.c index 80fac32b..bcbdfa2b 100644 --- a/neutrinordp/xrdp-color.c +++ b/neutrinordp/xrdp-color.c @@ -17,6 +17,10 @@ * limitations under the License. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xrdp-neutrinordp.h" char *APP_CC diff --git a/neutrinordp/xrdp-neutrinordp.c b/neutrinordp/xrdp-neutrinordp.c index b93b5fc0..7c854ee7 100644 --- a/neutrinordp/xrdp-neutrinordp.c +++ b/neutrinordp/xrdp-neutrinordp.c @@ -17,6 +17,10 @@ * limitations under the License. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xrdp-neutrinordp.h" #include "xrdp-color.h" #include "xrdp_rail.h" diff --git a/sesman/access.c b/sesman/access.c index 071c0ec3..2418505d 100644 --- a/sesman/access.c +++ b/sesman/access.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "sesman.h" extern struct config_sesman *g_cfg; /* in sesman.c */ diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c index b9717c8b..a56b80d9 100644 --- a/sesman/chansrv/chansrv.c +++ b/sesman/chansrv/chansrv.c @@ -17,6 +17,10 @@ * limitations under the License. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "arch.h" #include "os_calls.h" #include "thread_calls.h" diff --git a/sesman/chansrv/chansrv_common.c b/sesman/chansrv/chansrv_common.c index fd26da7c..c1e064c8 100644 --- a/sesman/chansrv/chansrv_common.c +++ b/sesman/chansrv/chansrv_common.c @@ -16,6 +16,10 @@ * limitations under the License. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "chansrv_common.h" /** diff --git a/sesman/chansrv/chansrv_fuse.c b/sesman/chansrv/chansrv_fuse.c index 71d2e42c..04b8fd68 100644 --- a/sesman/chansrv/chansrv_fuse.c +++ b/sesman/chansrv/chansrv_fuse.c @@ -43,6 +43,10 @@ char g_fuse_root_path[256] = ""; char g_fuse_clipboard_path[256] = ""; /* for clipboard use */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #ifndef XRDP_FUSE /****************************************************************************** diff --git a/sesman/chansrv/clipboard.c b/sesman/chansrv/clipboard.c index 6e4a16a6..359a9116 100644 --- a/sesman/chansrv/clipboard.c +++ b/sesman/chansrv/clipboard.c @@ -159,6 +159,10 @@ x-special/gnome-copied-files */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include #include diff --git a/sesman/chansrv/clipboard_file.c b/sesman/chansrv/clipboard_file.c index 827bc618..338e375a 100644 --- a/sesman/chansrv/clipboard_file.c +++ b/sesman/chansrv/clipboard_file.c @@ -22,6 +22,10 @@ * CLIPRDR_FILEDESCRIPTOR * http://msdn.microsoft.com/en-us/library/ff362447%28prot.20%29.aspx */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include #include diff --git a/sesman/chansrv/devredir.c b/sesman/chansrv/devredir.c index cc532d8f..598d0aa9 100644 --- a/sesman/chansrv/devredir.c +++ b/sesman/chansrv/devredir.c @@ -34,6 +34,10 @@ * o mark local funcs with static */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include #include diff --git a/sesman/chansrv/drdynvc.c b/sesman/chansrv/drdynvc.c index dfd8a878..3de03f7e 100644 --- a/sesman/chansrv/drdynvc.c +++ b/sesman/chansrv/drdynvc.c @@ -16,6 +16,10 @@ * limitations under the License. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "drdynvc.h" extern int g_drdynvc_chan_id; /* in chansrv.c */ diff --git a/sesman/chansrv/fifo.c b/sesman/chansrv/fifo.c index 595dbb29..73955196 100644 --- a/sesman/chansrv/fifo.c +++ b/sesman/chansrv/fifo.c @@ -19,6 +19,10 @@ /* FIFO implementation to store a pointer to a user struct */ /* module based logging */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #define MODULE_NAME "FIFO " #define LOCAL_DEBUG diff --git a/sesman/chansrv/irp.c b/sesman/chansrv/irp.c index d8527270..bd2580e1 100644 --- a/sesman/chansrv/irp.c +++ b/sesman/chansrv/irp.c @@ -21,6 +21,10 @@ * manage I/O for redirected file system and devices */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "parse.h" #include "os_calls.h" #include "irp.h" diff --git a/sesman/chansrv/rail.c b/sesman/chansrv/rail.c index e790a76b..6682cb75 100644 --- a/sesman/chansrv/rail.c +++ b/sesman/chansrv/rail.c @@ -26,6 +26,10 @@ http://msdn.microsoft.com/en-us/library/cc242568(v=prot.20).aspx */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include #include diff --git a/sesman/chansrv/smartcard.c b/sesman/chansrv/smartcard.c index 41fe66a4..f46a839e 100644 --- a/sesman/chansrv/smartcard.c +++ b/sesman/chansrv/smartcard.c @@ -22,6 +22,10 @@ * smartcard redirection support */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include "os_calls.h" #include "smartcard.h" diff --git a/sesman/chansrv/smartcard_pcsc.c b/sesman/chansrv/smartcard_pcsc.c index 29bd5a23..f98f30bb 100644 --- a/sesman/chansrv/smartcard_pcsc.c +++ b/sesman/chansrv/smartcard_pcsc.c @@ -23,6 +23,10 @@ * pcsc lib and daemon write struct on unix domain socket for communication */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #define JAY_TODO_CONTEXT 0 #define JAY_TODO_WIDE 1 diff --git a/sesman/chansrv/sound.c b/sesman/chansrv/sound.c index 1662cf28..31af3e4a 100644 --- a/sesman/chansrv/sound.c +++ b/sesman/chansrv/sound.c @@ -16,6 +16,10 @@ * limitations under the License. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include #include diff --git a/sesman/chansrv/xcommon.c b/sesman/chansrv/xcommon.c index 9aae4a06..92124407 100644 --- a/sesman/chansrv/xcommon.c +++ b/sesman/chansrv/xcommon.c @@ -16,6 +16,10 @@ * limitations under the License. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include "arch.h" #include "parse.h" diff --git a/sesman/config.c b/sesman/config.c index 39849bc5..c2e565ee 100644 --- a/sesman/config.c +++ b/sesman/config.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "arch.h" #include "list.h" #include "file.h" diff --git a/sesman/env.c b/sesman/env.c index adbfc788..2a07b873 100644 --- a/sesman/env.c +++ b/sesman/env.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include "list.h" diff --git a/sesman/libscp/libscp_connection.c b/sesman/libscp/libscp_connection.c index a5cfcb4a..3ace0e00 100644 --- a/sesman/libscp/libscp_connection.c +++ b/sesman/libscp/libscp_connection.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libscp_connection.h" //extern struct log_config* s_log; diff --git a/sesman/libscp/libscp_init.c b/sesman/libscp/libscp_init.c index 11f0678e..7eabd705 100644 --- a/sesman/libscp/libscp_init.c +++ b/sesman/libscp/libscp_init.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libscp_init.h" //struct log_config* s_log; diff --git a/sesman/libscp/libscp_lock.c b/sesman/libscp/libscp_lock.c index be0619cb..e025882d 100644 --- a/sesman/libscp/libscp_lock.c +++ b/sesman/libscp/libscp_lock.c @@ -19,6 +19,10 @@ * linux only */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libscp_lock.h" #include "thread_calls.h" diff --git a/sesman/libscp/libscp_session.c b/sesman/libscp/libscp_session.c index e932c82b..8df34b34 100644 --- a/sesman/libscp/libscp_session.c +++ b/sesman/libscp/libscp_session.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libscp_session.h" #include diff --git a/sesman/libscp/libscp_tcp.c b/sesman/libscp/libscp_tcp.c index d92597f4..86e71956 100644 --- a/sesman/libscp/libscp_tcp.c +++ b/sesman/libscp/libscp_tcp.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libscp_tcp.h" extern struct log_config *s_log; diff --git a/sesman/libscp/libscp_v0.c b/sesman/libscp/libscp_v0.c index 93f9e072..5a0c8bfa 100644 --- a/sesman/libscp/libscp_v0.c +++ b/sesman/libscp/libscp_v0.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libscp_v0.h" #include "os_calls.h" diff --git a/sesman/libscp/libscp_v1c.c b/sesman/libscp/libscp_v1c.c index 14f3bb0f..5401dda3 100644 --- a/sesman/libscp/libscp_v1c.c +++ b/sesman/libscp/libscp_v1c.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libscp_v1c.h" #include diff --git a/sesman/libscp/libscp_v1c_mng.c b/sesman/libscp/libscp_v1c_mng.c index d9b43b98..2ceaa95e 100644 --- a/sesman/libscp/libscp_v1c_mng.c +++ b/sesman/libscp/libscp_v1c_mng.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libscp_v1c_mng.h" #include diff --git a/sesman/libscp/libscp_v1s.c b/sesman/libscp/libscp_v1s.c index a03fea38..0e72ea1b 100644 --- a/sesman/libscp/libscp_v1s.c +++ b/sesman/libscp/libscp_v1s.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #ifndef LIBSCP_V1S_C #define LIBSCP_V1S_C diff --git a/sesman/libscp/libscp_v1s_mng.c b/sesman/libscp/libscp_v1s_mng.c index d8c5290d..9c31cec6 100644 --- a/sesman/libscp/libscp_v1s_mng.c +++ b/sesman/libscp/libscp_v1s_mng.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #ifndef LIBSCP_V1S_MNG_C #define LIBSCP_V1S_MNG_C diff --git a/sesman/libscp/libscp_vX.c b/sesman/libscp/libscp_vX.c index e590fe73..195b9225 100644 --- a/sesman/libscp/libscp_vX.c +++ b/sesman/libscp/libscp_vX.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "libscp_vX.h" /* server API */ diff --git a/sesman/scp.c b/sesman/scp.c index 89176dcb..a6fbc76e 100644 --- a/sesman/scp.c +++ b/sesman/scp.c @@ -27,6 +27,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "sesman.h" extern struct config_sesman *g_cfg; /* in sesman.c */ diff --git a/sesman/scp_v0.c b/sesman/scp_v0.c index 81ecc3a6..9f272719 100644 --- a/sesman/scp_v0.c +++ b/sesman/scp_v0.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "sesman.h" extern struct config_sesman *g_cfg; /* in sesman.c */ diff --git a/sesman/scp_v1.c b/sesman/scp_v1.c index 36e3892f..517e20d6 100644 --- a/sesman/scp_v1.c +++ b/sesman/scp_v1.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "sesman.h" //#include "libscp_types.h" diff --git a/sesman/scp_v1_mng.c b/sesman/scp_v1_mng.c index 61789cce..d945f2d7 100644 --- a/sesman/scp_v1_mng.c +++ b/sesman/scp_v1_mng.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "sesman.h" #include "libscp.h" diff --git a/sesman/sesman.c b/sesman/sesman.c index 8bebaa39..01bac015 100644 --- a/sesman/sesman.c +++ b/sesman/sesman.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "sesman.h" int g_sck; diff --git a/sesman/sig.c b/sesman/sig.c index 10fb3ff1..3ddaa2b2 100644 --- a/sesman/sig.c +++ b/sesman/sig.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include "sesman.h" diff --git a/sesman/tools/config.c b/sesman/tools/config.c index 0f1399cc..41c5d279 100644 --- a/sesman/tools/config.c +++ b/sesman/tools/config.c @@ -1 +1,5 @@ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "../config.c" diff --git a/sesman/tools/dis.c b/sesman/tools/dis.c index a21fbac4..086dc1b9 100644 --- a/sesman/tools/dis.c +++ b/sesman/tools/dis.c @@ -16,6 +16,10 @@ * limitations under the License. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include #include diff --git a/sesman/tools/sesadmin.c b/sesman/tools/sesadmin.c index 20458461..4220be1d 100644 --- a/sesman/tools/sesadmin.c +++ b/sesman/tools/sesadmin.c @@ -17,6 +17,10 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "arch.h" #include "tcp.h" #include "libscp.h" diff --git a/sesman/tools/sesrun.c b/sesman/tools/sesrun.c index d671f125..11a807f1 100644 --- a/sesman/tools/sesrun.c +++ b/sesman/tools/sesrun.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "sesman.h" #include "tcp.h" diff --git a/sesman/tools/sestest.c b/sesman/tools/sestest.c index 081bc88b..213d1ac3 100644 --- a/sesman/tools/sestest.c +++ b/sesman/tools/sestest.c @@ -17,6 +17,10 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "arch.h" #include "tcp.h" #include "libscp.h" diff --git a/sesman/tools/tcp.c b/sesman/tools/tcp.c index 32c0bbc9..dbb5e178 100644 --- a/sesman/tools/tcp.c +++ b/sesman/tools/tcp.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "sesman.h" #include diff --git a/sesman/tools/xcon.c b/sesman/tools/xcon.c index 4b3248b6..43202448 100644 --- a/sesman/tools/xcon.c +++ b/sesman/tools/xcon.c @@ -16,6 +16,10 @@ * limitations under the License. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include #include diff --git a/sesman/verify_user.c b/sesman/verify_user.c index adfef908..e3de9e8f 100644 --- a/sesman/verify_user.c +++ b/sesman/verify_user.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "sesman.h" #include diff --git a/sesman/verify_user_bsd.c b/sesman/verify_user_bsd.c index ff5e87a9..3000de99 100644 --- a/sesman/verify_user_bsd.c +++ b/sesman/verify_user_bsd.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "sesman.h" #define _XOPEN_SOURCE diff --git a/sesman/verify_user_kerberos.c b/sesman/verify_user_kerberos.c index 62d020a5..4f58c83a 100644 --- a/sesman/verify_user_kerberos.c +++ b/sesman/verify_user_kerberos.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "arch.h" #include "os_calls.h" diff --git a/sesman/verify_user_pam.c b/sesman/verify_user_pam.c index 73e0b63f..19c76a06 100644 --- a/sesman/verify_user_pam.c +++ b/sesman/verify_user_pam.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "arch.h" #include "os_calls.h" diff --git a/sesman/verify_user_pam_userpass.c b/sesman/verify_user_pam_userpass.c index 19bc7105..4fa246a5 100644 --- a/sesman/verify_user_pam_userpass.c +++ b/sesman/verify_user_pam_userpass.c @@ -24,6 +24,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "arch.h" #include "os_calls.h" diff --git a/sesman/xauth.c b/sesman/xauth.c index 003fb866..b95efb39 100644 --- a/sesman/xauth.c +++ b/sesman/xauth.c @@ -23,6 +23,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include "log.h" #include "os_calls.h" diff --git a/vnc/vnc.c b/vnc/vnc.c index 8b50b55c..5612575e 100644 --- a/vnc/vnc.c +++ b/vnc/vnc.c @@ -18,6 +18,10 @@ * libvnc */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "vnc.h" #include "log.h" #include "trans.h" diff --git a/xrdp/funcs.c b/xrdp/funcs.c index add5417e..a6e6bfcb 100644 --- a/xrdp/funcs.c +++ b/xrdp/funcs.c @@ -18,6 +18,10 @@ * simple functions */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xrdp.h" /*****************************************************************************/ diff --git a/xrdp/lang.c b/xrdp/lang.c index 1dede6f6..037bb438 100644 --- a/xrdp/lang.c +++ b/xrdp/lang.c @@ -19,6 +19,10 @@ * maximum unicode 19996(0x4e00) */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xrdp.h" #include "log.h" diff --git a/xrdp/xrdp.c b/xrdp/xrdp.c index 7550f933..21e9b2d4 100644 --- a/xrdp/xrdp.c +++ b/xrdp/xrdp.c @@ -18,6 +18,10 @@ * main program */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xrdp.h" #include "log.h" diff --git a/xrdp/xrdp_bitmap.c b/xrdp/xrdp_bitmap.c index deb56a2c..ef8d61ce 100644 --- a/xrdp/xrdp_bitmap.c +++ b/xrdp/xrdp_bitmap.c @@ -21,6 +21,10 @@ * maybe it should be called xrdp_drawable */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xrdp.h" #include "log.h" #include "crc16.h" diff --git a/xrdp/xrdp_cache.c b/xrdp/xrdp_cache.c index d4133325..ba2226cd 100644 --- a/xrdp/xrdp_cache.c +++ b/xrdp/xrdp_cache.c @@ -18,6 +18,10 @@ * cache */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xrdp.h" #include "log.h" #include "crc16.h" diff --git a/xrdp/xrdp_encoder.c b/xrdp/xrdp_encoder.c index 45c78d10..e6ae185c 100644 --- a/xrdp/xrdp_encoder.c +++ b/xrdp/xrdp_encoder.c @@ -18,6 +18,10 @@ * Encoder */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xrdp_encoder.h" #include "xrdp.h" #include "thread_calls.h" diff --git a/xrdp/xrdp_font.c b/xrdp/xrdp_font.c index 12c34d7f..f8f6e04f 100644 --- a/xrdp/xrdp_font.c +++ b/xrdp/xrdp_font.c @@ -36,6 +36,10 @@ Glyph Data var, see FONT_DATASIZE macro */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xrdp.h" #include "log.h" diff --git a/xrdp/xrdp_listen.c b/xrdp/xrdp_listen.c index c563d5fd..000b05d3 100644 --- a/xrdp/xrdp_listen.c +++ b/xrdp/xrdp_listen.c @@ -18,6 +18,10 @@ * listen for incoming connection */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xrdp.h" #include "log.h" diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c index 9e942f3c..70e3e345 100644 --- a/xrdp/xrdp_login_wnd.c +++ b/xrdp/xrdp_login_wnd.c @@ -18,6 +18,10 @@ * main login window and login help window */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xrdp.h" #include "log.h" diff --git a/xrdp/xrdp_painter.c b/xrdp/xrdp_painter.c index c25ad66f..510cce27 100644 --- a/xrdp/xrdp_painter.c +++ b/xrdp/xrdp_painter.c @@ -18,6 +18,10 @@ * painter, gc */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xrdp.h" #if defined(XRDP_PAINTER) diff --git a/xrdp/xrdp_process.c b/xrdp/xrdp_process.c index 45e2acc6..4c0b44c3 100644 --- a/xrdp/xrdp_process.c +++ b/xrdp/xrdp_process.c @@ -18,6 +18,10 @@ * main rdp process */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xrdp.h" static int g_session_id = 0; diff --git a/xrdp/xrdp_region.c b/xrdp/xrdp_region.c index 4da30f9d..58cd7f8e 100644 --- a/xrdp/xrdp_region.c +++ b/xrdp/xrdp_region.c @@ -18,6 +18,10 @@ * region */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xrdp.h" #if defined(XRDP_PIXMAN) diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c index 9b55c5bd..fc975297 100644 --- a/xrdp/xrdp_wm.c +++ b/xrdp/xrdp_wm.c @@ -18,6 +18,10 @@ * simple window manager */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include #include "xrdp.h" diff --git a/xrdp/xrdpwin.c b/xrdp/xrdpwin.c index 25ca6048..676f3c84 100644 --- a/xrdp/xrdpwin.c +++ b/xrdp/xrdpwin.c @@ -18,6 +18,10 @@ * main program */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #if defined(_WIN32) #include #endif diff --git a/xrdpapi/simple.c b/xrdpapi/simple.c index 5781b003..47e3d00e 100644 --- a/xrdpapi/simple.c +++ b/xrdpapi/simple.c @@ -25,6 +25,10 @@ * gcc simple.c -o simple -L./.libs -lxrdpapi */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #ifdef __WIN32__ #include #endif diff --git a/xrdpapi/vrplayer.c b/xrdpapi/vrplayer.c index 1faf127a..5e4fbde7 100644 --- a/xrdpapi/vrplayer.c +++ b/xrdpapi/vrplayer.c @@ -26,6 +26,10 @@ * run vrplayer: vrplayer *****************************************************************************/ +#if defined(HAVE_CONFIG_H) +#include +#endif + #ifdef __WIN32__ #include #endif diff --git a/xrdpapi/xrdpapi.c b/xrdpapi/xrdpapi.c index ac303534..07af7091 100644 --- a/xrdpapi/xrdpapi.c +++ b/xrdpapi/xrdpapi.c @@ -17,6 +17,10 @@ * limitations under the License. */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #define LOG_LEVEL 1 #define LLOG(_level, _args) \ do { if (_level < LOG_LEVEL) { ErrorF _args ; } } while (0) diff --git a/xrdpvr/xrdpvr.c b/xrdpvr/xrdpvr.c index 8de52be8..a342a7e1 100644 --- a/xrdpvr/xrdpvr.c +++ b/xrdpvr/xrdpvr.c @@ -21,6 +21,10 @@ * */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xrdpvr.h" #include "xrdpvr_internal.h" diff --git a/xup/xup.c b/xup/xup.c index ad0d896a..5b34779c 100644 --- a/xup/xup.c +++ b/xup/xup.c @@ -18,6 +18,10 @@ * libxup main file */ +#if defined(HAVE_CONFIG_H) +#include +#endif + #include "xup.h" #include "log.h" #include "trans.h"