The recommended way to integrate the detected results and enabled macros into the code is by including the designated config.h file (in this case "gw-config.h") in each source file (except for dbpool_*.c as those get included by dbpool.c).
The alternative would be to include it indirectly via some other header, but that is prone to error, as it makes it harder to check whether a file is transitively including it or not, and that might stop being the case if those headers stop being included. At the same time, now that all C files include this header, we can remove them from other header files that were including it. --- checks/check_counter.c | 2 ++ checks/check_date.c | 2 ++ checks/check_ipcheck.c | 1 + checks/check_list.c | 4 +++- checks/check_octstr.c | 2 ++ gw/bb_alog.c | 2 ++ gw/bb_boxc.c | 2 ++ gw/bb_http.c | 2 ++ gw/bb_store_file.c | 2 ++ gw/bb_udp.c | 2 ++ gw/bearerbox.c | 2 ++ gw/dlr.c | 4 +++- gw/dlr_cass.c | 2 ++ gw/dlr_mem.c | 2 ++ gw/dlr_mssql.c | 2 ++ gw/dlr_mysql.c | 2 ++ gw/dlr_oracle.c | 2 ++ gw/dlr_pgsql.c | 2 ++ gw/dlr_redis.c | 2 ++ gw/dlr_sdb.c | 2 ++ gw/dlr_spool.c | 2 ++ gw/dlr_sqlite3.c | 2 ++ gw/heartbeat.c | 2 ++ gw/html.c | 1 + gw/load.c | 2 ++ gw/meta_data.c | 2 ++ gw/mime_decompiler.c | 2 ++ gw/msg.c | 2 ++ gw/numhash.c | 2 ++ gw/ota_compiler.c | 2 ++ gw/ota_prov.c | 2 ++ gw/shared.c | 2 ++ gw/sms.c | 2 ++ gw/smsbox.c | 2 ++ gw/smsc/emimsg.c | 1 + gw/smsc/http/brunet.c | 2 ++ gw/smsc/http/clickatell.c | 2 ++ gw/smsc/http/generic.c | 2 ++ gw/smsc/http/kannel.c | 2 ++ gw/smsc/http/xidris.c | 2 ++ gw/smsc/smasi_pdu.c | 1 + gw/smsc/smpp_pdu.c | 1 + gw/smsc/smsc.c | 2 ++ gw/smsc/smsc_at.c | 2 ++ gw/smsc/smsc_cgw.c | 1 + gw/smsc/smsc_cimd.c | 2 ++ gw/smsc/smsc_cimd2.c | 2 ++ gw/smsc/smsc_emi.c | 1 + gw/smsc/smsc_emi_x25.c | 2 ++ gw/smsc/smsc_fake.c | 2 ++ gw/smsc/smsc_http.c | 2 ++ gw/smsc/smsc_loopback.c | 2 ++ gw/smsc/smsc_ois.c | 2 ++ gw/smsc/smsc_oisd.c | 2 ++ gw/smsc/smsc_sema.c | 2 ++ gw/smsc/smsc_smasi.c | 2 ++ gw/smsc/smsc_smpp.c | 2 ++ gw/smsc/smsc_soap.c | 2 ++ gw/smsc/smsc_soap_parlayx.c | 2 ++ gw/smsc/smsc_wrapper.c | 2 ++ gw/smscconn.c | 2 ++ gw/urltrans.c | 1 + gw/wap-appl.c | 2 ++ gw/wap-error.c | 2 ++ gw/wap-maps.c | 2 ++ gw/wap_push_ota.c | 2 ++ gw/wap_push_pap_compiler.c | 2 ++ gw/wap_push_pap_mime.c | 2 ++ gw/wap_push_ppg.c | 2 ++ gw/wap_push_ppg_pushuser.c | 2 ++ gw/wap_push_si_compiler.c | 2 ++ gw/wap_push_sl_compiler.c | 2 ++ gw/wapbox.c | 2 ++ gw/wml_compiler.c | 2 ++ gw/xml_shared.c | 2 ++ gwlib/accesslog.c | 1 + gwlib/cfg.c | 1 + gwlib/charset.c | 2 ++ gwlib/conn.c | 2 ++ gwlib/counter.c | 2 ++ gwlib/date.c | 2 ++ gwlib/dbpool.c | 2 ++ gwlib/dict.c | 1 + gwlib/gw-dlopen.c | 1 + gwlib/gw-pcre.c | 2 ++ gwlib/gw-prioqueue.c | 1 + gwlib/gw-regex.c | 2 ++ gwlib/gw-rwlock.c | 1 + gwlib/gw-rwlock.h | 1 - gwlib/gw-semaphore.c | 1 + gwlib/gw-timer.c | 2 ++ gwlib/gwlib.c | 2 ++ gwlib/gwlib.h | 2 -- gwlib/gwmem-native.c | 2 ++ gwlib/gwpoll.c | 2 ++ gwlib/gwthread-pthread.c | 2 ++ gwlib/gwthread.h | 1 - gwlib/http.c | 2 ++ gwlib/log.c | 2 ++ gwlib/md5.c | 2 ++ gwlib/mime.c | 2 ++ gwlib/octstr.c | 1 + gwlib/parse.c | 2 ++ gwlib/pki.c | 2 ++ gwlib/protected.c | 2 ++ gwlib/socket.c | 2 ++ gwlib/socket.h | 2 -- gwlib/ssl.c | 4 +++- gwlib/thread.c | 2 ++ gwlib/thread.h | 2 -- gwlib/xmlrpc.c | 4 +++- radius/radius_acct.c | 2 ++ radius/radius_pdu.c | 1 + test/decompile.c | 2 ++ test/drive_smpp.c | 1 + test/drive_wapbox.c | 2 ++ test/fakesmsc.c | 2 ++ test/fakewap.c | 2 ++ test/test_boxc.c | 4 +++- test/test_cfg.c | 2 ++ test/test_charset.c | 2 ++ test/test_cimd2.c | 2 ++ test/test_conn.c | 2 ++ test/test_date.c | 2 ++ test/test_dbpool.c | 4 +++- test/test_dict.c | 2 ++ test/test_file_traversal.c | 2 ++ test/test_hash.c | 2 ++ test/test_headers.c | 2 ++ test/test_hmac.c | 2 ++ test/test_http.c | 2 ++ test/test_http_server.c | 2 ++ test/test_list.c | 1 + test/test_mem.c | 1 + test/test_mime.c | 2 ++ test/test_mime_multipart.c | 2 ++ test/test_msg.c | 1 + test/test_octstr_dump.c | 2 ++ test/test_octstr_format.c | 2 ++ test/test_octstr_immutables.c | 2 ++ test/test_ota.c | 2 ++ test/test_pap.c | 2 ++ test/test_pcre.c | 2 ++ test/test_pdu.c | 4 +++- test/test_ppg.c | 2 ++ test/test_prioqueue.c | 2 ++ test/test_radius_acct.c | 2 ++ test/test_radius_pdu.c | 2 ++ test/test_regex.c | 2 ++ test/test_si.c | 2 ++ test/test_sl.c | 2 ++ test/test_smsc.c | 2 ++ test/test_store_dump.c | 2 ++ test/test_timerset.c | 2 ++ test/test_udp.c | 2 ++ test/test_urltrans.c | 2 ++ test/test_uuid.c | 2 ++ test/test_wakeup.c | 2 ++ test/test_xmlrpc.c | 1 + test/timestamp.c | 1 + test/udpfeed.c | 2 ++ test/wapproxy.c | 2 ++ test/wml_tester.c | 2 ++ utils/OTAbitmap.c | 2 ++ utils/attgetopt.c | 4 ++-- utils/decode_emimsg.c | 2 ++ utils/mtbatch.c | 2 ++ utils/run_kannel_box.c | 2 ++ utils/seewbmp.c | 1 + utils/wbmp.c | 2 ++ wap/cookies.c | 2 ++ wap/timers.c | 2 ++ wap/wap.c | 2 ++ wap/wap_addr.c | 2 ++ wap/wap_events.c | 1 + wap/wsp.c | 1 + wap/wsp_caps.c | 2 ++ wap/wsp_headers.c | 2 ++ wap/wsp_pdu.c | 2 ++ wap/wsp_push_client.c | 2 ++ wap/wsp_session.c | 1 + wap/wsp_strings.c | 2 ++ wap/wsp_unit.c | 2 ++ wap/wtls-secmgr.c | 2 ++ wap/wtls.c | 1 + wap/wtls_pdu.c | 2 ++ wap/wtls_pdusupport.c | 2 ++ wap/wtls_statesupport.c | 2 ++ wap/wtp.c | 2 ++ wap/wtp_init.c | 2 ++ wap/wtp_pack.c | 2 ++ wap/wtp_pdu.c | 2 ++ wap/wtp_resp.c | 2 ++ wap/wtp_tid.c | 2 ++ wmlscript/wmlsc.c | 2 ++ wmlscript/wmlsdasm.c | 2 ++ wmlscript/ws.c | 2 ++ wmlscript/wsalloc.c | 2 ++ wmlscript/wsasm.c | 2 ++ wmlscript/wsbc.c | 2 ++ wmlscript/wsbuffer.c | 2 ++ wmlscript/wsencode.c | 2 ++ wmlscript/wserror.c | 2 ++ wmlscript/wsfalloc.c | 2 ++ wmlscript/wsgram.y | 2 ++ wmlscript/wshash.c | 2 ++ wmlscript/wsieee754.c | 2 ++ wmlscript/wsint.h | 2 -- wmlscript/wslexer.c | 2 ++ wmlscript/wsopt.c | 2 ++ wmlscript/wsstdlib.c | 2 ++ wmlscript/wsstream.c | 2 ++ wmlscript/wsstream_data.c | 2 ++ wmlscript/wsstream_file.c | 2 ++ wmlscript/wsstree.c | 2 ++ wmlscript/wsutf8.c | 2 ++ 216 files changed, 399 insertions(+), 19 deletions(-) diff --git a/checks/check_counter.c b/checks/check_counter.c index b1acf1d2..29c8d010 100644 --- a/checks/check_counter.c +++ b/checks/check_counter.c @@ -61,6 +61,8 @@ * threads that get many counts and check that they are increasing. */ +#include "gw-config.h" + #include <limits.h> #ifndef THREADS diff --git a/checks/check_date.c b/checks/check_date.c index 89355bc4..f8a2c76e 100644 --- a/checks/check_date.c +++ b/checks/check_date.c @@ -58,6 +58,8 @@ * check_date.c - checking of date handling functions */ +#include "gw-config.h" + #include <string.h> #include "gwlib/gwlib.h" diff --git a/checks/check_ipcheck.c b/checks/check_ipcheck.c index df524ba6..9dff9db7 100644 --- a/checks/check_ipcheck.c +++ b/checks/check_ipcheck.c @@ -60,6 +60,7 @@ * Lars Wirzenius */ +#include "gw-config.h" #include "gwlib/gwlib.h" diff --git a/checks/check_list.c b/checks/check_list.c index 45ce24b2..aff42542 100644 --- a/checks/check_list.c +++ b/checks/check_list.c @@ -57,7 +57,9 @@ /* * check_list.c - check that gwlib/list.c works */ - + +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/checks/check_octstr.c b/checks/check_octstr.c index 81d12136..0c48f2c6 100644 --- a/checks/check_octstr.c +++ b/checks/check_octstr.c @@ -58,6 +58,8 @@ * check_octstr.c - checking of octet string functions */ +#include "gw-config.h" + #include <string.h> #include "gwlib/gwlib.h" diff --git a/gw/bb_alog.c b/gw/bb_alog.c index 5adc5ebf..b5d6fa4d 100644 --- a/gw/bb_alog.c +++ b/gw/bb_alog.c @@ -61,6 +61,8 @@ * Alexander Malysh <amalysh at kannel dot org> */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "msg.h" #include "sms.h" diff --git a/gw/bb_boxc.c b/gw/bb_boxc.c index c752bf43..38b1a1fe 100644 --- a/gw/bb_boxc.c +++ b/gw/bb_boxc.c @@ -64,6 +64,8 @@ * Alexander Malysh (various fixes) */ +#include "gw-config.h" + #include <errno.h> #include <stdlib.h> #include <stdio.h> diff --git a/gw/bb_http.c b/gw/bb_http.c index a7447441..0803425b 100644 --- a/gw/bb_http.c +++ b/gw/bb_http.c @@ -64,6 +64,8 @@ * Kalle Marjola <[email protected]> 2000 for project Kannel */ +#include "gw-config.h" + #include <errno.h> #include <signal.h> #include <unistd.h> diff --git a/gw/bb_store_file.c b/gw/bb_store_file.c index 975d05ec..7e1d6964 100644 --- a/gw/bb_store_file.c +++ b/gw/bb_store_file.c @@ -68,6 +68,8 @@ * - better choice when dump done; configurable frequency */ +#include "gw-config.h" + #include <errno.h> #include <stdlib.h> #include <stdio.h> diff --git a/gw/bb_udp.c b/gw/bb_udp.c index 1a4e3900..b2c473f5 100644 --- a/gw/bb_udp.c +++ b/gw/bb_udp.c @@ -63,6 +63,8 @@ * Kalle Marjola <[email protected]> 2000 for project Kannel */ +#include "gw-config.h" + #include <errno.h> #include <stdlib.h> #include <stdio.h> diff --git a/gw/bearerbox.c b/gw/bearerbox.c index a3fff70d..9455db3c 100644 --- a/gw/bearerbox.c +++ b/gw/bearerbox.c @@ -64,6 +64,8 @@ * Kalle Marjola <[email protected]> 2000 for project Kannel */ +#include "gw-config.h" + #include <errno.h> #include <stdlib.h> #include <stdio.h> diff --git a/gw/dlr.c b/gw/dlr.c index 995eabae..584113ef 100644 --- a/gw/dlr.c +++ b/gw/dlr.c @@ -78,7 +78,9 @@ * 2009-04-29: aguerrieri at kannel dot org: * added support for ms-sql and sybase via freetds. */ - + +#include "gw-config.h" + #include <ctype.h> #include <time.h> #include <errno.h> diff --git a/gw/dlr_cass.c b/gw/dlr_cass.c index a29825b1..cad07ea0 100644 --- a/gw/dlr_cass.c +++ b/gw/dlr_cass.c @@ -63,6 +63,8 @@ * Stipe Tolj <stolj at kannel.org, 01.10.2015 */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "gwlib/dbpool.h" #include "dlr_p.h" diff --git a/gw/dlr_mem.c b/gw/dlr_mem.c index bdb3516d..368affa6 100644 --- a/gw/dlr_mem.c +++ b/gw/dlr_mem.c @@ -65,6 +65,8 @@ * Alexander Malysh <[email protected]> 2003 */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "dlr_p.h" diff --git a/gw/dlr_mssql.c b/gw/dlr_mssql.c index fae648b6..4bc1beed 100644 --- a/gw/dlr_mssql.c +++ b/gw/dlr_mssql.c @@ -66,6 +66,8 @@ * Copyright: See COPYING file that comes with this distribution */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "gwlib/dbpool.h" #include "dlr_p.h" diff --git a/gw/dlr_mysql.c b/gw/dlr_mysql.c index fdba8391..22864925 100644 --- a/gw/dlr_mysql.c +++ b/gw/dlr_mysql.c @@ -65,6 +65,8 @@ * Alexander Malysh <[email protected]> 2003 */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "gwlib/dbpool.h" #include "dlr_p.h" diff --git a/gw/dlr_oracle.c b/gw/dlr_oracle.c index 7864837f..f2072fd6 100644 --- a/gw/dlr_oracle.c +++ b/gw/dlr_oracle.c @@ -64,6 +64,8 @@ * Copyright: See COPYING file that comes with this distribution */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "gwlib/dbpool.h" #include "dlr_p.h" diff --git a/gw/dlr_pgsql.c b/gw/dlr_pgsql.c index bfeb4b58..378208f6 100644 --- a/gw/dlr_pgsql.c +++ b/gw/dlr_pgsql.c @@ -65,6 +65,8 @@ * Alexander Malysh <[email protected]>, cleanup 2004 */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "gwlib/dbpool.h" #include "dlr_p.h" diff --git a/gw/dlr_redis.c b/gw/dlr_redis.c index f210a3d8..744d2446 100644 --- a/gw/dlr_redis.c +++ b/gw/dlr_redis.c @@ -64,6 +64,8 @@ * Stipe Tolj <stolj at kannel.org>, 2013-12-12 */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "gwlib/dbpool.h" #include "dlr_p.h" diff --git a/gw/dlr_sdb.c b/gw/dlr_sdb.c index da324f6c..7a2b46ef 100644 --- a/gw/dlr_sdb.c +++ b/gw/dlr_sdb.c @@ -66,6 +66,8 @@ * Guillaume Cottenceau 2004 (dbpool support) */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "gwlib/dbpool.h" #include "dlr_p.h" diff --git a/gw/dlr_spool.c b/gw/dlr_spool.c index 1c58791d..04851c2f 100644 --- a/gw/dlr_spool.c +++ b/gw/dlr_spool.c @@ -64,6 +64,8 @@ * Stipe Tolj <stolj at kannel dot org> */ +#include "gw-config.h" + #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> diff --git a/gw/dlr_sqlite3.c b/gw/dlr_sqlite3.c index 51b3bd7e..3a20cd07 100644 --- a/gw/dlr_sqlite3.c +++ b/gw/dlr_sqlite3.c @@ -64,6 +64,8 @@ * Copyright: See COPYING file that comes with this distribution */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "gwlib/dbpool.h" #include "dlr_p.h" diff --git a/gw/heartbeat.c b/gw/heartbeat.c index cebdd5c0..e29c0d11 100644 --- a/gw/heartbeat.c +++ b/gw/heartbeat.c @@ -58,6 +58,8 @@ * heartbeat.c - thread for sending heartbeat Msgs to bearerbox */ +#include "gw-config.h" + #include <signal.h> #include "gwlib/gwlib.h" diff --git a/gw/html.c b/gw/html.c index bfa0a5e3..9b1b08db 100644 --- a/gw/html.c +++ b/gw/html.c @@ -60,6 +60,7 @@ * Lars Wirzenius */ +#include "gw-config.h" #include <ctype.h> #include <stdio.h> diff --git a/gw/load.c b/gw/load.c index 293bf08f..ded6377e 100644 --- a/gw/load.c +++ b/gw/load.c @@ -60,6 +60,8 @@ * Alexander Malysh <amalysh at kannel.org> 2008 for project Kannel */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "load.h" diff --git a/gw/meta_data.c b/gw/meta_data.c index fb409e82..3439c9dc 100644 --- a/gw/meta_data.c +++ b/gw/meta_data.c @@ -62,6 +62,8 @@ * Alexander Malysh <amalysh kannel.org>, 2007-2009 */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "meta_data.h" diff --git a/gw/mime_decompiler.c b/gw/mime_decompiler.c index bf3f225a..2f6ea1b3 100644 --- a/gw/mime_decompiler.c +++ b/gw/mime_decompiler.c @@ -67,6 +67,8 @@ * Bruno Rodrigues */ +#include "gw-config.h" + #include <time.h> #include <unistd.h> #include <sys/types.h> diff --git a/gw/msg.c b/gw/msg.c index f1ba5892..2894ccc6 100644 --- a/gw/msg.c +++ b/gw/msg.c @@ -63,6 +63,8 @@ * Lars Wirzenius <[email protected]> */ +#include "gw-config.h" + #include <errno.h> #include <stdlib.h> #include <sys/types.h> diff --git a/gw/numhash.c b/gw/numhash.c index 968593b9..328be9ec 100644 --- a/gw/numhash.c +++ b/gw/numhash.c @@ -67,6 +67,8 @@ * Kalle Marjola for project Kannel 1999-2000 */ +#include "gw-config.h" + #include <stdlib.h> #include <string.h> #include <ctype.h> diff --git a/gw/ota_compiler.c b/gw/ota_compiler.c index d0d9993c..20f90543 100644 --- a/gw/ota_compiler.c +++ b/gw/ota_compiler.c @@ -79,6 +79,8 @@ * Paul Bagyenda for digital solutions Ltd. */ +#include "gw-config.h" + #include <ctype.h> #include <inttypes.h> #include <libxml/xmlmemory.h> diff --git a/gw/ota_prov.c b/gw/ota_prov.c index 06681298..db414c1f 100644 --- a/gw/ota_prov.c +++ b/gw/ota_prov.c @@ -69,6 +69,8 @@ * XML compiler by Aarno Syv�nen <[email protected]>, Wiral Ltd. */ +#include "gw-config.h" + #include <string.h> #include "gwlib/gwlib.h" diff --git a/gw/shared.c b/gw/shared.c index 0659fcdb..b1ce6441 100644 --- a/gw/shared.c +++ b/gw/shared.c @@ -60,6 +60,8 @@ * Lars Wirzenius */ +#include "gw-config.h" + #include <errno.h> #include <sys/unistd.h> #include <libxml/xmlversion.h> diff --git a/gw/sms.c b/gw/sms.c index d73e9817..c2dd1ec5 100644 --- a/gw/sms.c +++ b/gw/sms.c @@ -62,6 +62,8 @@ * and placed here. */ +#include "gw-config.h" + #include "sms.h" #include "dlr.h" diff --git a/gw/smsbox.c b/gw/smsbox.c index 90864073..56a70a9b 100644 --- a/gw/smsbox.c +++ b/gw/smsbox.c @@ -58,6 +58,8 @@ * smsbox.c - main program of the smsbox */ +#include "gw-config.h" + #include <errno.h> #include <unistd.h> #include <signal.h> diff --git a/gw/smsc/emimsg.c b/gw/smsc/emimsg.c index 934a471c..e8a62473 100644 --- a/gw/smsc/emimsg.c +++ b/gw/smsc/emimsg.c @@ -60,6 +60,7 @@ * Functions for working with EMI messages * Uoti Urpala 2001 */ +#include "gw-config.h" #include "emimsg.h" diff --git a/gw/smsc/http/brunet.c b/gw/smsc/http/brunet.c index 4cd4f6bb..1f3f91a8 100644 --- a/gw/smsc/http/brunet.c +++ b/gw/smsc/http/brunet.c @@ -64,6 +64,8 @@ * Tobias Weber <[email protected]> */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "smscconn.h" #include "smscconn_p.h" diff --git a/gw/smsc/http/clickatell.c b/gw/smsc/http/clickatell.c index 16e4f4d2..aa59775a 100644 --- a/gw/smsc/http/clickatell.c +++ b/gw/smsc/http/clickatell.c @@ -61,6 +61,8 @@ * Stipe Tolj <[email protected]>, <[email protected]> */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "smscconn.h" #include "smscconn_p.h" diff --git a/gw/smsc/http/generic.c b/gw/smsc/http/generic.c index 2f1db3e5..28ffbff6 100644 --- a/gw/smsc/http/generic.c +++ b/gw/smsc/http/generic.c @@ -88,6 +88,8 @@ * MO processing by Alejandro Guerrieri <aguerrieri at kannel dot org> */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "smscconn.h" #include "smscconn_p.h" diff --git a/gw/smsc/http/kannel.c b/gw/smsc/http/kannel.c index 6ca5bc67..13047073 100644 --- a/gw/smsc/http/kannel.c +++ b/gw/smsc/http/kannel.c @@ -54,6 +54,8 @@ * WapIT Ltd., Helsinki, Finland for the Kannel project. */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "smscconn.h" #include "smscconn_p.h" diff --git a/gw/smsc/http/xidris.c b/gw/smsc/http/xidris.c index fd25cbcb..64d64cee 100644 --- a/gw/smsc/http/xidris.c +++ b/gw/smsc/http/xidris.c @@ -62,6 +62,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "smscconn.h" #include "smscconn_p.h" diff --git a/gw/smsc/smasi_pdu.c b/gw/smsc/smasi_pdu.c index 65c56240..eddeac00 100644 --- a/gw/smsc/smasi_pdu.c +++ b/gw/smsc/smasi_pdu.c @@ -60,6 +60,7 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" #include <string.h> #include "smasi_pdu.h" diff --git a/gw/smsc/smpp_pdu.c b/gw/smsc/smpp_pdu.c index aeb5f925..5e1981b8 100644 --- a/gw/smsc/smpp_pdu.c +++ b/gw/smsc/smpp_pdu.c @@ -62,6 +62,7 @@ * Extended optional parameters implementation. */ +#include "gw-config.h" #include <string.h> #include "smpp_pdu.h" diff --git a/gw/smsc/smsc.c b/gw/smsc/smsc.c index fd808f40..5a1b1f89 100644 --- a/gw/smsc/smsc.c +++ b/gw/smsc/smsc.c @@ -64,6 +64,8 @@ * public functions (used by gateway) are named smsc_* */ +#include "gw-config.h" + #include <errno.h> #include <signal.h> #include <stdarg.h> diff --git a/gw/smsc/smsc_at.c b/gw/smsc/smsc_at.c index c1ead171..64a17277 100644 --- a/gw/smsc/smsc_at.c +++ b/gw/smsc/smsc_at.c @@ -68,6 +68,8 @@ * */ +#include "gw-config.h" + #include <errno.h> #include <stdarg.h> #include <stdio.h> diff --git a/gw/smsc/smsc_cgw.c b/gw/smsc/smsc_cgw.c index 06637bd8..058b4ade 100644 --- a/gw/smsc/smsc_cgw.c +++ b/gw/smsc/smsc_cgw.c @@ -103,6 +103,7 @@ * */ +#include "gw-config.h" #include <sys/types.h> #include <sys/socket.h> diff --git a/gw/smsc/smsc_cimd.c b/gw/smsc/smsc_cimd.c index f72fe64d..30e92665 100644 --- a/gw/smsc/smsc_cimd.c +++ b/gw/smsc/smsc_cimd.c @@ -59,6 +59,8 @@ * Mikael Gueck for WapIT Ltd. */ +#include "gw-config.h" + #include <errno.h> #include <string.h> #include <stdio.h> diff --git a/gw/smsc/smsc_cimd2.c b/gw/smsc/smsc_cimd2.c index 63481233..8dc2618b 100644 --- a/gw/smsc/smsc_cimd2.c +++ b/gw/smsc/smsc_cimd2.c @@ -77,6 +77,8 @@ * be negative. I assume that this means a leading - is valid. */ +#include "gw-config.h" + #include <ctype.h> #include <time.h> #include <errno.h> diff --git a/gw/smsc/smsc_emi.c b/gw/smsc/smsc_emi.c index bc89a75c..28b666ef 100644 --- a/gw/smsc/smsc_emi.c +++ b/gw/smsc/smsc_emi.c @@ -71,6 +71,7 @@ /* The EMI specification doesn't document how connections should be * opened/used. The way they currently work might need to be changed. */ +#include "gw-config.h" #include <sys/types.h> #include <sys/socket.h> diff --git a/gw/smsc/smsc_emi_x25.c b/gw/smsc/smsc_emi_x25.c index 1cb8e129..9aada476 100644 --- a/gw/smsc/smsc_emi_x25.c +++ b/gw/smsc/smsc_emi_x25.c @@ -61,6 +61,8 @@ /* This file implements two smsc interfaces: EMI_X25 */ +#include "gw-config.h" + #include <errno.h> #include <string.h> #include <stdio.h> diff --git a/gw/smsc/smsc_fake.c b/gw/smsc/smsc_fake.c index 941e83f1..9d437266 100644 --- a/gw/smsc/smsc_fake.c +++ b/gw/smsc/smsc_fake.c @@ -63,6 +63,8 @@ /* Doesn't support multi-send * Doesn't warn about unrecognized configuration variables */ +#include "gw-config.h" + #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> diff --git a/gw/smsc/smsc_http.c b/gw/smsc/smsc_http.c index 9def9558..8e5f31a9 100644 --- a/gw/smsc/smsc_http.c +++ b/gw/smsc/smsc_http.c @@ -111,6 +111,8 @@ * Tobias Weber <[email protected]> */ +#include "gw-config.h" + #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> diff --git a/gw/smsc/smsc_loopback.c b/gw/smsc/smsc_loopback.c index 2fdfe461..cce6f8cc 100644 --- a/gw/smsc/smsc_loopback.c +++ b/gw/smsc/smsc_loopback.c @@ -64,6 +64,8 @@ * Stipe Tolj <stolj at kannel dot org> */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "smscconn.h" #include "smscconn_p.h" diff --git a/gw/smsc/smsc_ois.c b/gw/smsc/smsc_ois.c index a802b287..a7ec2fac 100644 --- a/gw/smsc/smsc_ois.c +++ b/gw/smsc/smsc_ois.c @@ -108,6 +108,8 @@ * just whatever you want, what should I care :-). */ +#include "gw-config.h" + #include <unistd.h> #include <ctype.h> #include <errno.h> diff --git a/gw/smsc/smsc_oisd.c b/gw/smsc/smsc_oisd.c index a2f83f85..7c17ca2c 100644 --- a/gw/smsc/smsc_oisd.c +++ b/gw/smsc/smsc_oisd.c @@ -68,6 +68,8 @@ * document version 5.8, 18 January 2001, Sema Telecoms. */ +#include "gw-config.h" + #include <ctype.h> #include <time.h> #include <errno.h> diff --git a/gw/smsc/smsc_sema.c b/gw/smsc/smsc_sema.c index d3a909c1..d205aa2e 100644 --- a/gw/smsc/smsc_sema.c +++ b/gw/smsc/smsc_sema.c @@ -76,6 +76,8 @@ * Hao Shi 2000 */ +#include "gw-config.h" + #include <errno.h> #include <stdarg.h> #include <stdio.h> diff --git a/gw/smsc/smsc_smasi.c b/gw/smsc/smsc_smasi.c index 4219a43e..04320da1 100644 --- a/gw/smsc/smsc_smasi.c +++ b/gw/smsc/smsc_smasi.c @@ -79,6 +79,8 @@ * 10. EnquireLink PDUs not supported. */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "msg.h" #include "smsc_p.h" diff --git a/gw/smsc/smsc_smpp.c b/gw/smsc/smsc_smpp.c index 810dad7b..6f1ebe79 100644 --- a/gw/smsc/smsc_smpp.c +++ b/gw/smsc/smsc_smpp.c @@ -69,6 +69,8 @@ either) */ /* XXX numbering plans and type of number: check spec */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "msg.h" #include "smsc_p.h" diff --git a/gw/smsc/smsc_soap.c b/gw/smsc/smsc_soap.c index fb02d879..a1c4c5e7 100644 --- a/gw/smsc/smsc_soap.c +++ b/gw/smsc/smsc_soap.c @@ -111,6 +111,8 @@ * */ +#include "gw-config.h" + #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> diff --git a/gw/smsc/smsc_soap_parlayx.c b/gw/smsc/smsc_soap_parlayx.c index 7dd80094..04b1a0a9 100644 --- a/gw/smsc/smsc_soap_parlayx.c +++ b/gw/smsc/smsc_soap_parlayx.c @@ -60,6 +60,8 @@ * Stipe Tolj <stolj at kannel.org> */ +#include "gw-config.h" + #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> diff --git a/gw/smsc/smsc_wrapper.c b/gw/smsc/smsc_wrapper.c index b1fe8a31..6ce1e950 100644 --- a/gw/smsc/smsc_wrapper.c +++ b/gw/smsc/smsc_wrapper.c @@ -62,6 +62,8 @@ * Kalle Marjola 2000 */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "smscconn.h" #include "smscconn_p.h" diff --git a/gw/smscconn.c b/gw/smscconn.c index ad46105a..da46424a 100644 --- a/gw/smscconn.c +++ b/gw/smscconn.c @@ -62,6 +62,8 @@ * Kalle Marjola 2000 for project Kannel */ +#include "gw-config.h" + #include <signal.h> #include <time.h> diff --git a/gw/urltrans.c b/gw/urltrans.c index f660e49c..f3729adb 100644 --- a/gw/urltrans.c +++ b/gw/urltrans.c @@ -60,6 +60,7 @@ * Lars Wirzenius */ +#include "gw-config.h" #include <ctype.h> #include <errno.h> diff --git a/gw/wap-appl.c b/gw/wap-appl.c index 62b21674..7a1412ab 100644 --- a/gw/wap-appl.c +++ b/gw/wap-appl.c @@ -82,6 +82,8 @@ * Lars Wirzenius */ +#include "gw-config.h" + #include <string.h> #include "gwlib/gwlib.h" diff --git a/gw/wap-error.c b/gw/wap-error.c index 4784eb5e..87481624 100644 --- a/gw/wap-error.c +++ b/gw/wap-error.c @@ -60,6 +60,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "wap/wsp.h" #include "wap-error.h" diff --git a/gw/wap-maps.c b/gw/wap-maps.c index 367f84bc..5d13078f 100644 --- a/gw/wap-maps.c +++ b/gw/wap-maps.c @@ -60,6 +60,8 @@ * Bruno Rodrigues <[email protected]> */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "wap-maps.h" diff --git a/gw/wap_push_ota.c b/gw/wap_push_ota.c index c8fb817d..f7f0dd14 100644 --- a/gw/wap_push_ota.c +++ b/gw/wap_push_ota.c @@ -75,6 +75,8 @@ * By Aarno Syv�nen for Wapit Ltd and Global Networks Inc. */ +#include "gw-config.h" + #include <errno.h> #include "wap_push_ota.h" diff --git a/gw/wap_push_pap_compiler.c b/gw/wap_push_pap_compiler.c index 8f225c5b..7024d506 100644 --- a/gw/wap_push_pap_compiler.c +++ b/gw/wap_push_pap_compiler.c @@ -82,6 +82,8 @@ * By Aarno Syv�nen for Wapit Ltd and for Wiral Ltd. */ +#include "gw-config.h" + #include <ctype.h> #include <string.h> #include <inttypes.h> diff --git a/gw/wap_push_pap_mime.c b/gw/wap_push_pap_mime.c index 4616799e..15136e35 100644 --- a/gw/wap_push_pap_mime.c +++ b/gw/wap_push_pap_mime.c @@ -61,6 +61,8 @@ * By Aarno Syv�nen for Wiral Ltd and Global Networks Inc. */ +#include "gw-config.h" + #include "wap_push_pap_mime.h" /***************************************************************************** diff --git a/gw/wap_push_ppg.c b/gw/wap_push_ppg.c index cea8c2e9..2af2bdb3 100644 --- a/gw/wap_push_ppg.c +++ b/gw/wap_push_ppg.c @@ -73,6 +73,8 @@ * By Aarno Syv�nen for Wapit Ltd, Wiral Ltd and Global Networks Inc. */ +#include "gw-config.h" + #include <time.h> #include <ctype.h> diff --git a/gw/wap_push_ppg_pushuser.c b/gw/wap_push_ppg_pushuser.c index e891d020..ee9a6d43 100644 --- a/gw/wap_push_ppg_pushuser.c +++ b/gw/wap_push_ppg_pushuser.c @@ -60,6 +60,8 @@ * By Aarno Syv�nen for Wiral Ltd and Global Networks Inc. */ +#include "gw-config.h" + #include "wap_push_ppg_pushuser.h" #include "numhash.h" #include "gwlib/gw-regex.h" diff --git a/gw/wap_push_si_compiler.c b/gw/wap_push_si_compiler.c index 7e70f893..718a8997 100644 --- a/gw/wap_push_si_compiler.c +++ b/gw/wap_push_si_compiler.c @@ -62,6 +62,8 @@ * By Aarno Syv�nen for Wiral Ltd */ +#include "gw-config.h" + #include <ctype.h> #include <inttypes.h> #include <libxml/xmlmemory.h> diff --git a/gw/wap_push_sl_compiler.c b/gw/wap_push_sl_compiler.c index 8ae173c9..66ecd5d9 100644 --- a/gw/wap_push_sl_compiler.c +++ b/gw/wap_push_sl_compiler.c @@ -62,6 +62,8 @@ * By Aarno Syv�nen for Wiral Ltd */ +#include "gw-config.h" + #include <ctype.h> #include <inttypes.h> #include <libxml/xmlmemory.h> diff --git a/gw/wapbox.c b/gw/wapbox.c index cd5f3839..0e606a7b 100644 --- a/gw/wapbox.c +++ b/gw/wapbox.c @@ -61,6 +61,8 @@ * See the architecture documentation for details. */ +#include "gw-config.h" + #include <stdlib.h> #include <time.h> #include <unistd.h> diff --git a/gw/wml_compiler.c b/gw/wml_compiler.c index 1fc6e672..af7c7983 100644 --- a/gw/wml_compiler.c +++ b/gw/wml_compiler.c @@ -65,6 +65,8 @@ * Tuomas Luttinen for Wapit Ltd. */ +#include "gw-config.h" + #include <time.h> #include <unistd.h> #include <sys/types.h> diff --git a/gw/xml_shared.c b/gw/xml_shared.c index ce858aed..d5496372 100644 --- a/gw/xml_shared.c +++ b/gw/xml_shared.c @@ -61,6 +61,8 @@ * By Tuomas Luttinen & Aarno Syv�nen (for Wiral Ltd) */ +#include "gw-config.h" + #include <ctype.h> #include "xml_shared.h" diff --git a/gwlib/accesslog.c b/gwlib/accesslog.c index b3dda301..c229c6aa 100644 --- a/gwlib/accesslog.c +++ b/gwlib/accesslog.c @@ -62,6 +62,7 @@ * Kalle Marjola 2000 for Project Kannel */ +#include "gw-config.h" #include <stdio.h> #include <stdlib.h> diff --git a/gwlib/cfg.c b/gwlib/cfg.c index bd4b1911..e05b983c 100644 --- a/gwlib/cfg.c +++ b/gwlib/cfg.c @@ -60,6 +60,7 @@ * Lars Wirzenius */ +#include "gw-config.h" #include "gwlib/gwlib.h" diff --git a/gwlib/charset.c b/gwlib/charset.c index 94e9add8..14cc9360 100644 --- a/gwlib/charset.c +++ b/gwlib/charset.c @@ -62,6 +62,8 @@ * Richard Braakman */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #if HAVE_ICONV diff --git a/gwlib/conn.c b/gwlib/conn.c index 8dd4e30a..db1a2ccb 100644 --- a/gwlib/conn.c +++ b/gwlib/conn.c @@ -71,6 +71,8 @@ /* TODO: have I/O functions check if connection is open */ /* TODO: have conn_open_tcp do a non-blocking connect() */ +#include "gw-config.h" + #include <signal.h> #include <unistd.h> #include <errno.h> diff --git a/gwlib/counter.c b/gwlib/counter.c index eefb7b82..f07e3a52 100644 --- a/gwlib/counter.c +++ b/gwlib/counter.c @@ -67,6 +67,8 @@ * [email protected] */ +#include "gw-config.h" + #include <limits.h> #include "gwlib.h" diff --git a/gwlib/date.c b/gwlib/date.c index cc0e9b60..ac8ffc93 100644 --- a/gwlib/date.c +++ b/gwlib/date.c @@ -59,6 +59,8 @@ * Richard Braakman */ +#include "gw-config.h" + #include <unistd.h> #include <ctype.h> #include <string.h> diff --git a/gwlib/dbpool.c b/gwlib/dbpool.c index 1b5701b4..0b007f71 100644 --- a/gwlib/dbpool.c +++ b/gwlib/dbpool.c @@ -67,6 +67,8 @@ * 2009 Added support for MS-SQL using FreeTDS */ +#include "gw-config.h" + #include "gwlib.h" #include "dbpool.h" #include "dbpool_p.h" diff --git a/gwlib/dict.c b/gwlib/dict.c index 6f756796..575b4a46 100644 --- a/gwlib/dict.c +++ b/gwlib/dict.c @@ -63,6 +63,7 @@ * Lars Wirzenius, based on code by Tuomas Luttinen */ +#include "gw-config.h" #include "gwlib.h" diff --git a/gwlib/gw-dlopen.c b/gwlib/gw-dlopen.c index 3bd0f1a1..b3bf9799 100644 --- a/gwlib/gw-dlopen.c +++ b/gwlib/gw-dlopen.c @@ -62,6 +62,7 @@ */ #include "gw-config.h" + #include "gwlib.h" #include <dlfcn.h> diff --git a/gwlib/gw-pcre.c b/gwlib/gw-pcre.c index 1f398c6e..84ee570e 100644 --- a/gwlib/gw-pcre.c +++ b/gwlib/gw-pcre.c @@ -67,6 +67,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <ctype.h> #include "gwlib/gwlib.h" diff --git a/gwlib/gw-prioqueue.c b/gwlib/gw-prioqueue.c index 9853613d..b7473ca7 100644 --- a/gwlib/gw-prioqueue.c +++ b/gwlib/gw-prioqueue.c @@ -63,6 +63,7 @@ */ #include "gw-config.h" + #include <pthread.h> #include "thread.h" #include "gwmem.h" diff --git a/gwlib/gw-regex.c b/gwlib/gw-regex.c index 7992bf92..0736050e 100644 --- a/gwlib/gw-regex.c +++ b/gwlib/gw-regex.c @@ -67,6 +67,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <ctype.h> #include "gwlib/gwlib.h" diff --git a/gwlib/gw-rwlock.c b/gwlib/gw-rwlock.c index c2b1422f..aedbd54a 100644 --- a/gwlib/gw-rwlock.c +++ b/gwlib/gw-rwlock.c @@ -63,6 +63,7 @@ */ #include "gw-config.h" + #include "gwlib.h" #include "gw-rwlock.h" diff --git a/gwlib/gw-rwlock.h b/gwlib/gw-rwlock.h index 06f8695e..1e431b18 100644 --- a/gwlib/gw-rwlock.h +++ b/gwlib/gw-rwlock.h @@ -63,7 +63,6 @@ #ifndef GW_RWLOCK_H #define GW_RWLOCK_H -#include "gw-config.h" #ifndef HAVE_PTHREAD_RWLOCK #include "list.h" #else diff --git a/gwlib/gw-semaphore.c b/gwlib/gw-semaphore.c index 50f58004..d406359d 100644 --- a/gwlib/gw-semaphore.c +++ b/gwlib/gw-semaphore.c @@ -61,6 +61,7 @@ * Alexander Malysh <[email protected]>, 2004 */ +#include "gw-config.h" #include "gwlib/gwlib.h" diff --git a/gwlib/gw-timer.c b/gwlib/gw-timer.c index a9d9536a..6aa84ff6 100644 --- a/gwlib/gw-timer.c +++ b/gwlib/gw-timer.c @@ -60,6 +60,8 @@ * See gw-timer.h for a description of the interface. */ +#include "gw-config.h" + #include <signal.h> #include "gwlib/gwlib.h" diff --git a/gwlib/gwlib.c b/gwlib/gwlib.c index 66b66f47..562f87ac 100644 --- a/gwlib/gwlib.c +++ b/gwlib/gwlib.c @@ -60,6 +60,8 @@ * Lars Wirzenius */ +#include "gw-config.h" + #include "gwlib.h" diff --git a/gwlib/gwlib.h b/gwlib/gwlib.h index ff99dbe0..e3af7e59 100644 --- a/gwlib/gwlib.h +++ b/gwlib/gwlib.h @@ -71,8 +71,6 @@ #include <stddef.h> #include <string.h> -#include "gw-config.h" - #include "gw-getopt.h" #include "gwpoll.h" diff --git a/gwlib/gwmem-native.c b/gwlib/gwmem-native.c index 312fe1c0..1d2541e0 100644 --- a/gwlib/gwmem-native.c +++ b/gwlib/gwmem-native.c @@ -60,6 +60,8 @@ * Lars Wirzenius */ +#include "gw-config.h" + #include <stdlib.h> #include <errno.h> #include <string.h> diff --git a/gwlib/gwpoll.c b/gwlib/gwpoll.c index 3d0eb09e..796a2de0 100644 --- a/gwlib/gwpoll.c +++ b/gwlib/gwpoll.c @@ -56,6 +56,8 @@ /* gwpoll.c - implement poll() for systems that don't have it */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #ifndef HAVE_SYS_POLL_H diff --git a/gwlib/gwthread-pthread.c b/gwlib/gwthread-pthread.c index 7508e26e..340fda16 100644 --- a/gwlib/gwthread-pthread.c +++ b/gwlib/gwthread-pthread.c @@ -60,6 +60,8 @@ * Richard Braakman */ +#include "gw-config.h" + #include <unistd.h> #include <errno.h> #include <pthread.h> diff --git a/gwlib/gwthread.h b/gwlib/gwthread.h index 54c9ad73..5bfd668d 100644 --- a/gwlib/gwthread.h +++ b/gwlib/gwthread.h @@ -68,7 +68,6 @@ #ifndef GWTHREAD_H #define GWTHREAD_H -#include "gw-config.h" #ifdef HAVE_SYS_POLL_H #include <sys/poll.h> #endif diff --git a/gwlib/http.c b/gwlib/http.c index 2b9e3198..78c6ced1 100644 --- a/gwlib/http.c +++ b/gwlib/http.c @@ -73,6 +73,8 @@ /* XXX 100 status codes. */ /* XXX stop destroying persistent connections when a request is redirected */ +#include "gw-config.h" + #include <ctype.h> #include <errno.h> #include <unistd.h> diff --git a/gwlib/log.c b/gwlib/log.c index 862f711c..b86463ad 100644 --- a/gwlib/log.c +++ b/gwlib/log.c @@ -58,6 +58,8 @@ * log.c - implement logging functions */ +#include "gw-config.h" + #include "gwlib.h" #include <limits.h> #include <stdio.h> diff --git a/gwlib/md5.c b/gwlib/md5.c index c7de3379..8fdd4602 100644 --- a/gwlib/md5.c +++ b/gwlib/md5.c @@ -85,6 +85,8 @@ documentation and/or software. */ +#include "gw-config.h" + #include <stdio.h> #include "gwlib.h" diff --git a/gwlib/mime.c b/gwlib/mime.c index 93cf9bcf..ba237a97 100644 --- a/gwlib/mime.c +++ b/gwlib/mime.c @@ -66,6 +66,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <string.h> #include <limits.h> #include <ctype.h> diff --git a/gwlib/octstr.c b/gwlib/octstr.c index 24563b01..48eb1fa9 100644 --- a/gwlib/octstr.c +++ b/gwlib/octstr.c @@ -62,6 +62,7 @@ * Lars Wirzenius */ +#include "gw-config.h" #include <ctype.h> #include <limits.h> diff --git a/gwlib/parse.c b/gwlib/parse.c index 0ee17099..a20d9b70 100644 --- a/gwlib/parse.c +++ b/gwlib/parse.c @@ -60,6 +60,8 @@ * Richard Braakman */ +#include "gw-config.h" + #include "gwlib/gwlib.h" struct context diff --git a/gwlib/pki.c b/gwlib/pki.c index c1054231..2ada6535 100644 --- a/gwlib/pki.c +++ b/gwlib/pki.c @@ -59,6 +59,8 @@ * */ +#include "gw-config.h" + #include <stdio.h> #include "gwlib/gwlib.h" diff --git a/gwlib/protected.c b/gwlib/protected.c index 21cfa1c3..114b4932 100644 --- a/gwlib/protected.c +++ b/gwlib/protected.c @@ -60,6 +60,8 @@ * Lars Wirzenius */ +#include "gw-config.h" + #include <locale.h> #include <errno.h> diff --git a/gwlib/socket.c b/gwlib/socket.c index 64f724d5..5e7bccef 100644 --- a/gwlib/socket.c +++ b/gwlib/socket.c @@ -54,6 +54,8 @@ * WapIT Ltd., Helsinki, Finland for the Kannel project. */ +#include "gw-config.h" + #include <ctype.h> #include <errno.h> #include <stdarg.h> diff --git a/gwlib/socket.h b/gwlib/socket.h index 0f602ed6..e40956fc 100644 --- a/gwlib/socket.h +++ b/gwlib/socket.h @@ -67,8 +67,6 @@ #include <netinet/in.h> #include <netinet/tcp.h> -#include "gw-config.h" - #ifndef HAVE_SOCKLEN_T typedef int socklen_t; #endif diff --git a/gwlib/ssl.c b/gwlib/ssl.c index a92170d8..138b5050 100644 --- a/gwlib/ssl.c +++ b/gwlib/ssl.c @@ -67,7 +67,9 @@ * Stipe Tolj <[email protected]> * for Kannel Project and Wapme Systems AG */ - + +#include "gw-config.h" + #include "gwlib/gwlib.h" #ifdef HAVE_LIBSSL diff --git a/gwlib/thread.c b/gwlib/thread.c index 24500fc0..436eeb55 100644 --- a/gwlib/thread.c +++ b/gwlib/thread.c @@ -54,6 +54,8 @@ * WapIT Ltd., Helsinki, Finland for the Kannel project. */ +#include "gw-config.h" + #include <string.h> #include <stdio.h> #include <stdlib.h> diff --git a/gwlib/thread.h b/gwlib/thread.h index a8c17f64..30a163e6 100644 --- a/gwlib/thread.h +++ b/gwlib/thread.h @@ -61,8 +61,6 @@ #ifndef GW_THREAD_H #define GW_THREAD_H -#include "gw-config.h" - #if !HAVE_PTHREAD_H #error "You need POSIX.1 threads and <pthread.h> header file" #endif diff --git a/gwlib/xmlrpc.c b/gwlib/xmlrpc.c index 6d6bde18..e769e9c3 100644 --- a/gwlib/xmlrpc.c +++ b/gwlib/xmlrpc.c @@ -64,7 +64,9 @@ * Stipe Tolj <[email protected]> * Robert Gaach <[email protected]> */ - + +#include "gw-config.h" + #include <inttypes.h> #include <libxml/xmlmemory.h> #include <libxml/tree.h> diff --git a/radius/radius_acct.c b/radius/radius_acct.c index a5cc50b7..1fee61bb 100644 --- a/radius/radius_acct.c +++ b/radius/radius_acct.c @@ -60,6 +60,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <string.h> #include <fcntl.h> #include <errno.h> diff --git a/radius/radius_pdu.c b/radius/radius_pdu.c index faced9b1..bad57ace 100644 --- a/radius/radius_pdu.c +++ b/radius/radius_pdu.c @@ -65,6 +65,7 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" #include <string.h> #include "radius_pdu.h" diff --git a/test/decompile.c b/test/decompile.c index a97294f8..aceea7d8 100644 --- a/test/decompile.c +++ b/test/decompile.c @@ -62,6 +62,8 @@ * */ +#include "gw-config.h" + #include <stdio.h> #include <stdlib.h> #include <memory.h> diff --git a/test/drive_smpp.c b/test/drive_smpp.c index 9898a989..a3c50dca 100644 --- a/test/drive_smpp.c +++ b/test/drive_smpp.c @@ -60,6 +60,7 @@ * Lars Wirzenius */ +#include "gw-config.h" #include <errno.h> #include <signal.h> diff --git a/test/drive_wapbox.c b/test/drive_wapbox.c index 14f9cfa9..a619c916 100644 --- a/test/drive_wapbox.c +++ b/test/drive_wapbox.c @@ -63,6 +63,8 @@ * Richard Braakman */ +#include "gw-config.h" + #include <string.h> #include <stdlib.h> #include <unistd.h> diff --git a/test/fakesmsc.c b/test/fakesmsc.c index f1b112e4..1d0937f7 100644 --- a/test/fakesmsc.c +++ b/test/fakesmsc.c @@ -74,6 +74,8 @@ * Largely rewritten by Uoti Urpala */ +#include "gw-config.h" + static char usage[] = "\n\ Usage: fakesmsc [-H host] [-r port] [-i interval] [-m max] [-z <type>] <msg> ... \n\ \n\ diff --git a/test/fakewap.c b/test/fakewap.c index afbcee4f..300212ea 100644 --- a/test/fakewap.c +++ b/test/fakewap.c @@ -129,6 +129,8 @@ * Antti Saarenheimo for WapIT Ltd. */ +#include "gw-config.h" + #define MAX_SEND (0) /* Versions: diff --git a/test/test_boxc.c b/test/test_boxc.c index 123c06fc..413c9697 100644 --- a/test/test_boxc.c +++ b/test/test_boxc.c @@ -59,7 +59,9 @@ * * Stipe Tolj <[email protected]> */ - + +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "gw/msg.h" #include "gw/shared.h" diff --git a/test/test_cfg.c b/test/test_cfg.c index f645d604..ce848b00 100644 --- a/test/test_cfg.c +++ b/test/test_cfg.c @@ -54,6 +54,8 @@ * WapIT Ltd., Helsinki, Finland for the Kannel project. */ +#include "gw-config.h" + #include "gwlib/gwlib.h" int main(int argc, char **argv) diff --git a/test/test_charset.c b/test/test_charset.c index 17a5cdec..44e1c7ea 100644 --- a/test/test_charset.c +++ b/test/test_charset.c @@ -60,6 +60,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/test/test_cimd2.c b/test/test_cimd2.c index e539e8a3..9c7584ac 100644 --- a/test/test_cimd2.c +++ b/test/test_cimd2.c @@ -73,6 +73,8 @@ * and should be fixed. */ +#include "gw-config.h" + #include <stdlib.h> #include <stdio.h> #include <string.h> diff --git a/test/test_conn.c b/test/test_conn.c index a3448e1f..11054b3f 100644 --- a/test/test_conn.c +++ b/test/test_conn.c @@ -60,6 +60,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/test/test_date.c b/test/test_date.c index a421fa28..b4a67a5f 100644 --- a/test/test_date.c +++ b/test/test_date.c @@ -54,6 +54,8 @@ * WapIT Ltd., Helsinki, Finland for the Kannel project. */ +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/test/test_dbpool.c b/test/test_dbpool.c index f503dcef..f37fea90 100644 --- a/test/test_dbpool.c +++ b/test/test_dbpool.c @@ -60,7 +60,9 @@ * Stipe Tolj <[email protected]> * Alexander Malysh <[email protected]> */ - + +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "gwlib/dbpool.h" diff --git a/test/test_dict.c b/test/test_dict.c index f7f8e612..f84d27c6 100644 --- a/test/test_dict.c +++ b/test/test_dict.c @@ -61,6 +61,8 @@ * Stipe Tolj */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #define HUGE_SIZE 200000 diff --git a/test/test_file_traversal.c b/test/test_file_traversal.c index 013564ea..6e7c54f5 100644 --- a/test/test_file_traversal.c +++ b/test/test_file_traversal.c @@ -58,6 +58,8 @@ * test_file_traversal.c - simple file traversal testing */ +#include "gw-config.h" + #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> diff --git a/test/test_hash.c b/test/test_hash.c index 28b94c98..417ccd12 100644 --- a/test/test_hash.c +++ b/test/test_hash.c @@ -60,6 +60,8 @@ * Stipe Tolj <stolj at kannel dot org> */ +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/test/test_headers.c b/test/test_headers.c index 54151cf0..44e36e4b 100644 --- a/test/test_headers.c +++ b/test/test_headers.c @@ -60,6 +60,8 @@ * Richard Braakman <[email protected]> */ +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/test/test_hmac.c b/test/test_hmac.c index ed542fa4..55935c15 100644 --- a/test/test_hmac.c +++ b/test/test_hmac.c @@ -68,6 +68,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/test/test_http.c b/test/test_http.c index 19418fb0..0a15f1b6 100644 --- a/test/test_http.c +++ b/test/test_http.c @@ -60,6 +60,8 @@ * Lars Wirzenius */ +#include "gw-config.h" + #include <string.h> #include <stdlib.h> #include <unistd.h> diff --git a/test/test_http_server.c b/test/test_http_server.c index c761b402..e5ef6753 100644 --- a/test/test_http_server.c +++ b/test/test_http_server.c @@ -60,6 +60,8 @@ * Lars Wirzenius */ +#include "gw-config.h" + #include <string.h> #include <stdlib.h> #include <unistd.h> diff --git a/test/test_list.c b/test/test_list.c index b0e2a173..4d8d4785 100644 --- a/test/test_list.c +++ b/test/test_list.c @@ -60,6 +60,7 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" #include "gwlib/gwlib.h" diff --git a/test/test_mem.c b/test/test_mem.c index 3ff5d83d..526370e6 100644 --- a/test/test_mem.c +++ b/test/test_mem.c @@ -60,6 +60,7 @@ * Lars Wirzenius */ +#include "gw-config.h" #include "gwlib/gwlib.h" diff --git a/test/test_mime.c b/test/test_mime.c index c7384dc0..119cbba0 100644 --- a/test/test_mime.c +++ b/test/test_mime.c @@ -66,6 +66,8 @@ * By Aarno Syv�nen for Wiral Ltd */ +#include "gw-config.h" + #include <stdio.h> #include "gwlib/gwlib.h" diff --git a/test/test_mime_multipart.c b/test/test_mime_multipart.c index 699c6728..2c859afa 100644 --- a/test/test_mime_multipart.c +++ b/test/test_mime_multipart.c @@ -60,6 +60,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/test/test_msg.c b/test/test_msg.c index 5cb5538a..4ceb5d04 100644 --- a/test/test_msg.c +++ b/test/test_msg.c @@ -63,6 +63,7 @@ * Lars Wirzenius <[email protected]> */ +#include "gw-config.h" #include "gw/msg.h" #include "gwlib/gwlib.h" diff --git a/test/test_octstr_dump.c b/test/test_octstr_dump.c index 2e4a56ce..44d342b1 100644 --- a/test/test_octstr_dump.c +++ b/test/test_octstr_dump.c @@ -60,6 +60,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/test/test_octstr_format.c b/test/test_octstr_format.c index 05a52737..0f6082f3 100644 --- a/test/test_octstr_format.c +++ b/test/test_octstr_format.c @@ -58,6 +58,8 @@ * test_octstr_format.c - simple testing of octstr_format() */ +#include "gw-config.h" + #include "gwlib/gwlib.h" int main(void) diff --git a/test/test_octstr_immutables.c b/test/test_octstr_immutables.c index 9e6ae6a4..c7d1027f 100644 --- a/test/test_octstr_immutables.c +++ b/test/test_octstr_immutables.c @@ -58,6 +58,8 @@ * test_octstr_immutables.c - simple testing of octstr_imm() */ +#include "gw-config.h" + #include <stdio.h> #include "gwlib/gwlib.h" diff --git a/test/test_ota.c b/test/test_ota.c index abf66c08..fd08ddf3 100644 --- a/test/test_ota.c +++ b/test/test_ota.c @@ -60,6 +60,8 @@ * By Aarno Syv�nen for Wiral Ltd */ +#include "gw-config.h" + #include <stdio.h> #include "gwlib/gwlib.h" diff --git a/test/test_pap.c b/test/test_pap.c index 5bae9773..af5753a6 100644 --- a/test/test_pap.c +++ b/test/test_pap.c @@ -60,6 +60,8 @@ * By Aarno Syv�nen for Wiral Ltd */ +#include "gw-config.h" + #include <stdio.h> #include "gwlib/gwlib.h" diff --git a/test/test_pcre.c b/test/test_pcre.c index 8c8e2b26..b9f388f5 100644 --- a/test/test_pcre.c +++ b/test/test_pcre.c @@ -60,6 +60,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/test/test_pdu.c b/test/test_pdu.c index d0cc4186..bd1014f9 100644 --- a/test/test_pdu.c +++ b/test/test_pdu.c @@ -59,7 +59,9 @@ * * Richard Braakman */ - + +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/test/test_ppg.c b/test/test_ppg.c index 0d2df8fd..6e23c5df 100644 --- a/test/test_ppg.c +++ b/test/test_ppg.c @@ -67,6 +67,8 @@ * By Aarno Syv�nen for Wiral Ltd and Global Networks Inc. */ +#include "gw-config.h" + #define MAX_THREADS 1024 #define MAX_IN_QUEUE 128 diff --git a/test/test_prioqueue.c b/test/test_prioqueue.c index d041d46c..3efe52d9 100644 --- a/test/test_prioqueue.c +++ b/test/test_prioqueue.c @@ -60,6 +60,8 @@ * Alexander Malysh <olek2002 at hotmail.com>, 2004 */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "gwlib/gw-prioqueue.h" diff --git a/test/test_radius_acct.c b/test/test_radius_acct.c index e8fcf7a7..698be46f 100644 --- a/test/test_radius_acct.c +++ b/test/test_radius_acct.c @@ -60,6 +60,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <unistd.h> #include <string.h> diff --git a/test/test_radius_pdu.c b/test/test_radius_pdu.c index db0e1e01..32c9d3a2 100644 --- a/test/test_radius_pdu.c +++ b/test/test_radius_pdu.c @@ -60,6 +60,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/test/test_regex.c b/test/test_regex.c index aa3175b5..2507bbdc 100644 --- a/test/test_regex.c +++ b/test/test_regex.c @@ -60,6 +60,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/test/test_si.c b/test/test_si.c index 53c68bdb..233a4c52 100644 --- a/test/test_si.c +++ b/test/test_si.c @@ -60,6 +60,8 @@ * By Aarno Syv�nen for Wiral Ltd */ +#include "gw-config.h" + #include <stdio.h> #include "gwlib/gwlib.h" diff --git a/test/test_sl.c b/test/test_sl.c index 1ffb2c3e..573ae360 100644 --- a/test/test_sl.c +++ b/test/test_sl.c @@ -60,6 +60,8 @@ * By Aarno Syv�nen for Wiral Ltd */ +#include "gw-config.h" + #include <stdio.h> #include "gwlib/gwlib.h" diff --git a/test/test_smsc.c b/test/test_smsc.c index e4b9e594..3e244a01 100644 --- a/test/test_smsc.c +++ b/test/test_smsc.c @@ -54,6 +54,8 @@ * WapIT Ltd., Helsinki, Finland for the Kannel project. */ +#include "gw-config.h" + #include <unistd.h> #include "gwlib/gwlib.h" #include "gw/smsc/smpp_pdu.h" diff --git a/test/test_store_dump.c b/test/test_store_dump.c index d8aee234..62e43aa3 100644 --- a/test/test_store_dump.c +++ b/test/test_store_dump.c @@ -61,6 +61,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "shared.h" #include "bearerbox.h" diff --git a/test/test_timerset.c b/test/test_timerset.c index aeacf949..d3cb5fa4 100644 --- a/test/test_timerset.c +++ b/test/test_timerset.c @@ -60,6 +60,8 @@ * Stipe Tolj <stolj at kannel.org> */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "gwlib/gw-timer.h" #include "gw/msg.h" diff --git a/test/test_udp.c b/test/test_udp.c index 8283085b..df62f867 100644 --- a/test/test_udp.c +++ b/test/test_udp.c @@ -62,6 +62,8 @@ * Lars Wirzenius */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include <string.h> diff --git a/test/test_urltrans.c b/test/test_urltrans.c index 177719c4..cad3b65e 100644 --- a/test/test_urltrans.c +++ b/test/test_urltrans.c @@ -60,6 +60,8 @@ * Lars Wirzenius <[email protected]> */ +#include "gw-config.h" + #include <stdlib.h> #include <unistd.h> diff --git a/test/test_uuid.c b/test/test_uuid.c index 97cc1a8e..4319ff21 100644 --- a/test/test_uuid.c +++ b/test/test_uuid.c @@ -60,6 +60,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/test/test_wakeup.c b/test/test_wakeup.c index 55c52310..a1b9e4ff 100644 --- a/test/test_wakeup.c +++ b/test/test_wakeup.c @@ -54,6 +54,8 @@ * WapIT Ltd., Helsinki, Finland for the Kannel project. */ +#include "gw-config.h" + #include <unistd.h> #include "gwlib/gwlib.h" diff --git a/test/test_xmlrpc.c b/test/test_xmlrpc.c index c94adc6d..118cc989 100644 --- a/test/test_xmlrpc.c +++ b/test/test_xmlrpc.c @@ -60,6 +60,7 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" #include <string.h> #include <stdlib.h> diff --git a/test/timestamp.c b/test/timestamp.c index e9606b5c..07320bf0 100644 --- a/test/timestamp.c +++ b/test/timestamp.c @@ -65,6 +65,7 @@ * Lars Wirzenius */ +#include "gw-config.h" #include <stdio.h> diff --git a/test/udpfeed.c b/test/udpfeed.c index aeb51da4..7d4da8c6 100644 --- a/test/udpfeed.c +++ b/test/udpfeed.c @@ -62,6 +62,8 @@ * By default, it sends them at one-second intervals. */ +#include "gw-config.h" + #include <unistd.h> #include "gwlib/gwlib.h" diff --git a/test/wapproxy.c b/test/wapproxy.c index 70f57700..ea1e049f 100644 --- a/test/wapproxy.c +++ b/test/wapproxy.c @@ -85,6 +85,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <errno.h> #include <stdlib.h> #include <stdio.h> diff --git a/test/wml_tester.c b/test/wml_tester.c index 4d0fdcde..c7d51420 100644 --- a/test/wml_tester.c +++ b/test/wml_tester.c @@ -60,6 +60,8 @@ * Tuomas Luttinen <[email protected]> */ +#include "gw-config.h" + #include <stdlib.h> #include <unistd.h> diff --git a/utils/OTAbitmap.c b/utils/OTAbitmap.c index 602adf99..c48ae6a8 100644 --- a/utils/OTAbitmap.c +++ b/utils/OTAbitmap.c @@ -54,6 +54,8 @@ * WapIT Ltd., Helsinki, Finland for the Kannel project. */ +#include "gw-config.h" + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/utils/attgetopt.c b/utils/attgetopt.c index b24fcaba..3689e45e 100644 --- a/utils/attgetopt.c +++ b/utils/attgetopt.c @@ -61,11 +61,11 @@ * to bring it up to 21st century C. */ +#include "gw-config.h" + #include <stdio.h> #include <string.h> -#include "gw-config.h" - /* * If the systm has getopt() defined within stdio.h (like on Solaris 2.6) * then we will not implement our own here. diff --git a/utils/decode_emimsg.c b/utils/decode_emimsg.c index 86f83f10..af5294ce 100644 --- a/utils/decode_emimsg.c +++ b/utils/decode_emimsg.c @@ -59,6 +59,8 @@ * */ +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/utils/mtbatch.c b/utils/mtbatch.c index 0ac38b72..01d6a9ae 100644 --- a/utils/mtbatch.c +++ b/utils/mtbatch.c @@ -68,6 +68,8 @@ * XXX Add UDH capabilities. */ +#include "gw-config.h" + #include <string.h> #include <unistd.h> #include <signal.h> diff --git a/utils/run_kannel_box.c b/utils/run_kannel_box.c index 62210d9e..14e7a4e0 100644 --- a/utils/run_kannel_box.c +++ b/utils/run_kannel_box.c @@ -54,6 +54,8 @@ * WapIT Ltd., Helsinki, Finland for the Kannel project. */ +#include "gw-config.h" + #include <stdio.h> #include <stddef.h> #include <stdlib.h> diff --git a/utils/seewbmp.c b/utils/seewbmp.c index 745e689b..eaada0b9 100644 --- a/utils/seewbmp.c +++ b/utils/seewbmp.c @@ -84,6 +84,7 @@ * */ +#include "gw-config.h" #include <stdio.h> #include <stddef.h> diff --git a/utils/wbmp.c b/utils/wbmp.c index c07e8421..d501b384 100644 --- a/utils/wbmp.c +++ b/utils/wbmp.c @@ -54,6 +54,8 @@ * WapIT Ltd., Helsinki, Finland for the Kannel project. */ +#include "gw-config.h" + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/wap/cookies.c b/wap/cookies.c index 93bba74d..3bf85b28 100644 --- a/wap/cookies.c +++ b/wap/cookies.c @@ -66,6 +66,8 @@ * Date: May 2000 */ +#include "gw-config.h" + #include <string.h> #include <ctype.h> diff --git a/wap/timers.c b/wap/timers.c index 1ca22298..d8198b25 100644 --- a/wap/timers.c +++ b/wap/timers.c @@ -60,6 +60,8 @@ * See timers.h for a description of the interface. */ +#include "gw-config.h" + #include <signal.h> #include "gwlib/gwlib.h" diff --git a/wap/wap.c b/wap/wap.c index c30e96e7..1b3fe8e5 100644 --- a/wap/wap.c +++ b/wap/wap.c @@ -58,6 +58,8 @@ * wap.c - Generic functions for wap library */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "wap.h" #include "wtp.h" diff --git a/wap/wap_addr.c b/wap/wap_addr.c index 8fbe7875..226df310 100644 --- a/wap/wap_addr.c +++ b/wap/wap_addr.c @@ -58,6 +58,8 @@ * wap_addr.c - implement WAPAddr and WAPAddrTuple types. */ +#include "gw-config.h" + #include <stdlib.h> #include <arpa/inet.h> diff --git a/wap/wap_events.c b/wap/wap_events.c index 4177a117..94fc0604 100644 --- a/wap/wap_events.c +++ b/wap/wap_events.c @@ -62,6 +62,7 @@ * Nikos Balkanas, Inaccess Networks (2009) */ +#include "gw-config.h" #include "gwlib/gwlib.h" #include "wsp_caps.h" diff --git a/wap/wsp.c b/wap/wsp.c index 388e05d4..27f32538 100644 --- a/wap/wsp.c +++ b/wap/wsp.c @@ -58,6 +58,7 @@ * wsp.c - Parts of WSP shared between session oriented and connectionless mode */ +#include "gw-config.h" #include <string.h> diff --git a/wap/wsp_caps.c b/wap/wsp_caps.c index 7ba954c3..aa38558d 100644 --- a/wap/wsp_caps.c +++ b/wap/wsp_caps.c @@ -59,6 +59,8 @@ * Richard Braakman */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "wsp_caps.h" diff --git a/wap/wsp_headers.c b/wap/wsp_headers.c index 55671a78..dd414720 100644 --- a/wap/wsp_headers.c +++ b/wap/wsp_headers.c @@ -81,6 +81,8 @@ * Stipe Tolj <[email protected]> */ +#include "gw-config.h" + #include <string.h> #include <limits.h> #include <ctype.h> diff --git a/wap/wsp_pdu.c b/wap/wsp_pdu.c index e2c26967..041c856a 100644 --- a/wap/wsp_pdu.c +++ b/wap/wsp_pdu.c @@ -62,6 +62,8 @@ * Richard Braakman */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "wsp_pdu.h" diff --git a/wap/wsp_push_client.c b/wap/wsp_push_client.c index 1d2a0cdb..29d34726 100644 --- a/wap/wsp_push_client.c +++ b/wap/wsp_push_client.c @@ -60,6 +60,8 @@ * Aarno Syv�nen for Wapit Ltd */ +#include "gw-config.h" + #include "wsp_push_client.h" #include "wsp.h" #include "wtp.h" diff --git a/wap/wsp_session.c b/wap/wsp_session.c index b3c700a1..7386d631 100644 --- a/wap/wsp_session.c +++ b/wap/wsp_session.c @@ -61,6 +61,7 @@ * Stipe Tolj */ +#include "gw-config.h" #include <string.h> #include <limits.h> diff --git a/wap/wsp_strings.c b/wap/wsp_strings.c index a27d3157..be1f67c7 100644 --- a/wap/wsp_strings.c +++ b/wap/wsp_strings.c @@ -67,6 +67,8 @@ * Richard Braakman */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "wsp_strings.h" diff --git a/wap/wsp_unit.c b/wap/wsp_unit.c index 3b3028f2..0c6972ab 100644 --- a/wap/wsp_unit.c +++ b/wap/wsp_unit.c @@ -60,6 +60,8 @@ * Lars Wirzenius */ +#include "gw-config.h" + #include <string.h> #include "gwlib/gwlib.h" diff --git a/wap/wtls-secmgr.c b/wap/wtls-secmgr.c index 342921e1..e6e6e2fa 100644 --- a/wap/wtls-secmgr.c +++ b/wap/wtls-secmgr.c @@ -72,6 +72,8 @@ * */ +#include "gw-config.h" + #include <string.h> #include "gwlib/gwlib.h" diff --git a/wap/wtls.c b/wap/wtls.c index 07b59733..9ec46ffb 100644 --- a/wap/wtls.c +++ b/wap/wtls.c @@ -61,6 +61,7 @@ * Nikos Balkanas, InAccess Networks (2009) */ +#include "gw-config.h" #include "gwlib/gwlib.h" diff --git a/wap/wtls_pdu.c b/wap/wtls_pdu.c index 50cdaeb1..2bf55386 100644 --- a/wap/wtls_pdu.c +++ b/wap/wtls_pdu.c @@ -63,6 +63,8 @@ * */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #ifdef HAVE_WTLS_OPENSSL diff --git a/wap/wtls_pdusupport.c b/wap/wtls_pdusupport.c index 1be91a49..a440f762 100644 --- a/wap/wtls_pdusupport.c +++ b/wap/wtls_pdusupport.c @@ -63,6 +63,8 @@ * */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #ifdef HAVE_WTLS_OPENSSL diff --git a/wap/wtls_statesupport.c b/wap/wtls_statesupport.c index da51a01a..592922ce 100644 --- a/wap/wtls_statesupport.c +++ b/wap/wtls_statesupport.c @@ -61,6 +61,8 @@ * Nikos Balkanas, InAccess Networks (2009) */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #ifdef HAVE_WTLS_OPENSSL diff --git a/wap/wtp.c b/wap/wtp.c index 3f075d27..903a4bfc 100644 --- a/wap/wtp.c +++ b/wap/wtp.c @@ -61,6 +61,8 @@ * Lars Wirzenius */ +#include "gw-config.h" + #include "wtp.h" #include "wap_events.h" #include "wtp_pdu.h" diff --git a/wap/wtp_init.c b/wap/wtp_init.c index c85c6c34..b60bb244 100644 --- a/wap/wtp_init.c +++ b/wap/wtp_init.c @@ -60,6 +60,8 @@ * By Aarno Syv�nen for Wapit Ltd */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "wtp_init.h" #include "wtp_pack.h" diff --git a/wap/wtp_pack.c b/wap/wtp_pack.c index 6ab86123..2fa8d5c8 100644 --- a/wap/wtp_pack.c +++ b/wap/wtp_pack.c @@ -60,6 +60,8 @@ * By Aarno Syv�nen for WapIT Ltd. */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "wtp_pack.h" #include "wtp_pdu.h" diff --git a/wap/wtp_pdu.c b/wap/wtp_pdu.c index 3481bd15..c87c9ea0 100644 --- a/wap/wtp_pdu.c +++ b/wap/wtp_pdu.c @@ -61,6 +61,8 @@ * Richard Braakman */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "wtp_pdu.h" diff --git a/wap/wtp_resp.c b/wap/wtp_resp.c index 57c2d034..49c9c765 100644 --- a/wap/wtp_resp.c +++ b/wap/wtp_resp.c @@ -61,6 +61,8 @@ * Lars Wirzenius */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "wtp_resp.h" #include "wtp_pack.h" diff --git a/wap/wtp_tid.c b/wap/wtp_tid.c index d17e16a0..31f41374 100644 --- a/wap/wtp_tid.c +++ b/wap/wtp_tid.c @@ -61,6 +61,8 @@ * By Aarno Syv�nen for Wapit Ltd. */ +#include "gw-config.h" + #include "gwlib/gwlib.h" #include "wtp_tid.h" diff --git a/wmlscript/wmlsc.c b/wmlscript/wmlsc.c index 682ce507..faab8b8b 100644 --- a/wmlscript/wmlsc.c +++ b/wmlscript/wmlsc.c @@ -67,6 +67,8 @@ * */ +#include "gw-config.h" + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/wmlscript/wmlsdasm.c b/wmlscript/wmlsdasm.c index 6247c731..8cb143e5 100644 --- a/wmlscript/wmlsdasm.c +++ b/wmlscript/wmlsdasm.c @@ -67,6 +67,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" #include "gwlib/gwlib.h" diff --git a/wmlscript/ws.c b/wmlscript/ws.c index 2aa36188..aeee0e22 100644 --- a/wmlscript/ws.c +++ b/wmlscript/ws.c @@ -68,6 +68,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" #include "ws.h" #include "wsstree.h" diff --git a/wmlscript/wsalloc.c b/wmlscript/wsalloc.c index 608bf793..a4c0400e 100644 --- a/wmlscript/wsalloc.c +++ b/wmlscript/wsalloc.c @@ -68,6 +68,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" #if !WS_MEM_DEBUG diff --git a/wmlscript/wsasm.c b/wmlscript/wsasm.c index aa05a154..c89f3b63 100644 --- a/wmlscript/wsasm.c +++ b/wmlscript/wsasm.c @@ -67,6 +67,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" #include "wsasm.h" #include "wsstdlib.h" diff --git a/wmlscript/wsbc.c b/wmlscript/wsbc.c index 4f355fc9..3d1fcf1a 100644 --- a/wmlscript/wsbc.c +++ b/wmlscript/wsbc.c @@ -67,6 +67,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" #include "wsbc.h" diff --git a/wmlscript/wsbuffer.c b/wmlscript/wsbuffer.c index f4c09d0d..9d21d32f 100644 --- a/wmlscript/wsbuffer.c +++ b/wmlscript/wsbuffer.c @@ -67,6 +67,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" /********************* Global functions *********************************/ diff --git a/wmlscript/wsencode.c b/wmlscript/wsencode.c index f4f94fe6..d9cf4e56 100644 --- a/wmlscript/wsencode.c +++ b/wmlscript/wsencode.c @@ -67,6 +67,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" /********************* Types and definitions ****************************/ diff --git a/wmlscript/wserror.c b/wmlscript/wserror.c index df42c2f2..5ae7d282 100644 --- a/wmlscript/wserror.c +++ b/wmlscript/wserror.c @@ -67,6 +67,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" /********************* High-level functions *****************************/ diff --git a/wmlscript/wsfalloc.c b/wmlscript/wsfalloc.c index c588bb55..885ce623 100644 --- a/wmlscript/wsfalloc.c +++ b/wmlscript/wsfalloc.c @@ -67,6 +67,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" /********************* Global functions *********************************/ diff --git a/wmlscript/wsgram.y b/wmlscript/wsgram.y index 04c1d1fe..4475b0eb 100644 --- a/wmlscript/wsgram.y +++ b/wmlscript/wsgram.y @@ -12,6 +12,8 @@ * */ +#include "gw-config.h" + #include "wmlscript/wsint.h" %} diff --git a/wmlscript/wshash.c b/wmlscript/wshash.c index 43fc39f1..4b518eb1 100644 --- a/wmlscript/wshash.c +++ b/wmlscript/wshash.c @@ -67,6 +67,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" #include "wshash.h" diff --git a/wmlscript/wsieee754.c b/wmlscript/wsieee754.c index f1d63bd5..87387ed6 100644 --- a/wmlscript/wsieee754.c +++ b/wmlscript/wsieee754.c @@ -68,6 +68,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" /********************* Types and definitions ****************************/ diff --git a/wmlscript/wsint.h b/wmlscript/wsint.h index bf879ef1..c3fe8d62 100644 --- a/wmlscript/wsint.h +++ b/wmlscript/wsint.h @@ -71,8 +71,6 @@ #ifndef WSINT_H #define WSINT_H -#include "gw-config.h" - #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/wmlscript/wslexer.c b/wmlscript/wslexer.c index 6cafc190..dd8f0d2e 100644 --- a/wmlscript/wslexer.c +++ b/wmlscript/wslexer.c @@ -67,6 +67,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" #include "wsstree.h" #include "wsgram.h" diff --git a/wmlscript/wsopt.c b/wmlscript/wsopt.c index 1f62b0f3..f320b3fe 100644 --- a/wmlscript/wsopt.c +++ b/wmlscript/wsopt.c @@ -67,6 +67,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" #include "wsasm.h" diff --git a/wmlscript/wsstdlib.c b/wmlscript/wsstdlib.c index 50cb2543..48af9355 100644 --- a/wmlscript/wsstdlib.c +++ b/wmlscript/wsstdlib.c @@ -69,6 +69,8 @@ * WAP-255-WTAIGSM-20010908-a.pdf */ +#include "gw-config.h" + #include "wsint.h" /* TODO: the function registry could have argument type specifier diff --git a/wmlscript/wsstream.c b/wmlscript/wsstream.c index e3f08de6..6f488c3b 100644 --- a/wmlscript/wsstream.c +++ b/wmlscript/wsstream.c @@ -67,6 +67,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" /********************* Global functions *********************************/ diff --git a/wmlscript/wsstream_data.c b/wmlscript/wsstream_data.c index e1065b0a..312d55e6 100644 --- a/wmlscript/wsstream_data.c +++ b/wmlscript/wsstream_data.c @@ -67,6 +67,8 @@ * */ +#include "gw-config.h" + #include "wmlscript/wsint.h" /********************* Types and definitions ****************************/ diff --git a/wmlscript/wsstream_file.c b/wmlscript/wsstream_file.c index d1b05a9d..e9290a21 100644 --- a/wmlscript/wsstream_file.c +++ b/wmlscript/wsstream_file.c @@ -67,6 +67,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" /********************* Types and definitions ****************************/ diff --git a/wmlscript/wsstree.c b/wmlscript/wsstree.c index c5318a47..7c564bee 100644 --- a/wmlscript/wsstree.c +++ b/wmlscript/wsstree.c @@ -68,6 +68,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" #include "wsgram.h" diff --git a/wmlscript/wsutf8.c b/wmlscript/wsutf8.c index 355e3bcb..ab930028 100644 --- a/wmlscript/wsutf8.c +++ b/wmlscript/wsutf8.c @@ -69,6 +69,8 @@ * */ +#include "gw-config.h" + #include "wsint.h" /********************* Types and definitions ****************************/ -- 2.43.0
