s4-kdc: added ifdef guards in kdc.h
authorAndrew Tridgell <tridge@samba.org>
Tue, 28 Sep 2010 04:03:14 +0000 (21:03 -0700)
committerAndrew Tridgell <tridge@samba.org>
Tue, 28 Sep 2010 05:55:04 +0000 (22:55 -0700)
this prevents too much recursion in the compiler preprocessor

source4/kdc/kdc.h

index 0551063aa718c6bf837bb87c60e552562f0bfad1..6a2df1bc2c91a4b48cc8d3de989292e75d0c6120 100644 (file)
@@ -20,6 +20,9 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
+#ifndef _KDC_KDC_H
+#define _KDC_KDC_H
+
 #include "system/kerberos.h"
 #include "auth/kerberos/kerberos.h"
 #include <hdb.h>
@@ -50,3 +53,5 @@ bool kpasswdd_process(struct kdc_server *kdc,
 /* from hdb-samba4.c */
 NTSTATUS hdb_samba4_create_kdc(struct samba_kdc_base_context *base_ctx,
                               krb5_context context, struct HDB **db);
+
+#endif