From: Volker Lendecke Date: Tue, 30 May 2023 11:27:00 +0000 (+0200) Subject: lib: Add a few required #includes X-Git-Tag: talloc-2.4.1~346 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4972336f129efc2d7df802cef4d3a75d4761e21;p=thirdparty%2Fsamba.git lib: Add a few required #includes You find them if you try to #include these files directly Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/lib/crypto/gnutls_helpers.h b/lib/crypto/gnutls_helpers.h index 6719a599604..4e6f4f3f8b1 100644 --- a/lib/crypto/gnutls_helpers.h +++ b/lib/crypto/gnutls_helpers.h @@ -22,6 +22,7 @@ #include "libcli/util/ntstatus.h" #include "libcli/util/werror.h" +#include "lib/util/data_blob.h" /* Those macros are only available in GnuTLS >= 3.6.4 */ #ifndef GNUTLS_FIPS140_SET_LAX_MODE diff --git a/source3/include/smbprofile.h b/source3/include/smbprofile.h index 62873a5532b..3c9de159212 100644 --- a/source3/include/smbprofile.h +++ b/source3/include/smbprofile.h @@ -21,6 +21,9 @@ */ +#include "replace.h" +#include "lib/util/time.h" + struct tevent_context; #ifdef WITH_PROFILE diff --git a/source3/utils/conn_tdb.h b/source3/utils/conn_tdb.h index cbcf11d960a..2a6e04e0a82 100644 --- a/source3/utils/conn_tdb.h +++ b/source3/utils/conn_tdb.h @@ -19,6 +19,8 @@ /* key and data in the connections database - used in smbstatus and smbd */ +#include "source3/include/includes.h" + struct connections_data { struct server_id pid; int cnum; diff --git a/source4/lib/messaging/irpc.h b/source4/lib/messaging/irpc.h index ebf30afdb3f..d6a5c46504e 100644 --- a/source4/lib/messaging/irpc.h +++ b/source4/lib/messaging/irpc.h @@ -23,6 +23,7 @@ #define IRPC_H #include "lib/messaging/messaging.h" +#include "libcli/util/werror.h" #include "librpc/gen_ndr/irpc.h" /* diff --git a/source4/lib/messaging/messaging.h b/source4/lib/messaging/messaging.h index 3aa70b3f900..76b99cab614 100644 --- a/source4/lib/messaging/messaging.h +++ b/source4/lib/messaging/messaging.h @@ -22,8 +22,10 @@ #define _SOURCE4_LIB_MESSAGING_MESSAGES_H_ #include "librpc/gen_ndr/server_id.h" +#include "lib/util/data_blob.h" #include "librpc/gen_ndr/messaging.h" +struct loadparm_context; struct imessaging_context; /* taskid for messaging of parent process */