From a9400ccfe7ffe0ad57733f81805f6863d772928b Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 30 Jan 2018 22:36:04 -0600 Subject: [PATCH] Update: add necessary defines to fix problems with ldap deprecation and include issues On some systems, including does not result in all of tbe necessary defines being enabled without additional defines. Newer versions of ldap deprecatd and removed currently used functions. --- .../source/c/autocreate_ldap_accounts_in_postgresql.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/program/autocreate_ldap_accounts_in_postgresql/source/c/autocreate_ldap_accounts_in_postgresql.c b/program/autocreate_ldap_accounts_in_postgresql/source/c/autocreate_ldap_accounts_in_postgresql.c index 01e088c..40a2f9d 100644 --- a/program/autocreate_ldap_accounts_in_postgresql/source/c/autocreate_ldap_accounts_in_postgresql.c +++ b/program/autocreate_ldap_accounts_in_postgresql/source/c/autocreate_ldap_accounts_in_postgresql.c @@ -27,6 +27,9 @@ * * Copyright Kevin Day, lgpl v2.1 or later. */ +#define _GNU_SOURCE +#define LDAP_DEPRECATED 1 + #include #include #include -- 1.8.3.1