From: Remi Gacogne Date: Tue, 18 Feb 2020 09:37:54 +0000 (+0100) Subject: dnsdist: Add a comment about the lack of guard in dnsdist-lua-ffi-interface.h X-Git-Tag: auth-4.3.0-beta2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8505%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Add a comment about the lack of guard in dnsdist-lua-ffi-interface.h Reported by LGTM. --- diff --git a/pdns/dnsdistdist/dnsdist-lua-ffi-interface.h b/pdns/dnsdistdist/dnsdist-lua-ffi-interface.h index f1ae6cacdd..d56b73510a 100644 --- a/pdns/dnsdistdist/dnsdist-lua-ffi-interface.h +++ b/pdns/dnsdistdist/dnsdist-lua-ffi-interface.h @@ -19,6 +19,10 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ + +/* we don't use a guard (C++ pragma once or even #ifndef because this file (the .inc version) + is passed to the Lua FFI wrapper which doesn't support it */ + typedef struct dnsdist_ffi_dnsquestion_t dnsdist_ffi_dnsquestion_t; typedef struct dnsdist_ffi_servers_list_t dnsdist_ffi_servers_list_t; typedef struct dnsdist_ffi_server_t dnsdist_ffi_server_t;