1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
From: Boyuan Yang <byang@debian.org>
Date: Fri, 26 Apr 2024 10:51:32 -0400
Subject: Fix ftbfs implicit function declaration
Also include common.h for error.c for definition of error.c. Needed
for deprecated LDAP function of ldap_perror.
Bug-Debian: https://bugs.debian.org/1066357
---
common.h | 1 +
error.c | 3 +++
parse.c | 3 +++
parseldif.c | 2 ++
4 files changed, 9 insertions(+)
diff --git a/common.h b/common.h
index f731e62..714b112 100644
--- a/common.h
+++ b/common.h
@@ -282,6 +282,7 @@ int adjoin_str(GPtrArray *, char *);
int adjoin_ptr(GPtrArray *, void *);
void init_dialog(tdialog *, enum dialog_mode, char *, char *);
void dialog(char *header, tdialog *, int, int);
+void fdcp(int fdsrc, int fddst);
/*
* schema.c
diff --git a/error.c b/error.c
index 5924868..345a2bf 100644
--- a/error.c
+++ b/error.c
@@ -14,6 +14,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
+#include "common.h"
+
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/parse.c b/parse.c
index e171f53..0c6b0ec 100644
--- a/parse.c
+++ b/parse.c
@@ -16,7 +16,10 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define _XOPEN_SOURCE
+#define _POSIX_C_SOURCE (200809L)
#include <unistd.h>
+#include <crypt.h>
+#include <stdio.h>
#include "common.h"
#define fast_g_string_append_c(gstring, c) \
diff --git a/parseldif.c b/parseldif.c
index 5fb2628..147b095 100644
--- a/parseldif.c
+++ b/parseldif.c
@@ -16,7 +16,9 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define _XOPEN_SOURCE
+#define _POSIX_C_SOURCE (200809L)
#include <unistd.h>
+#include <stdio.h>
#include "common.h"
#define fast_g_string_append_c(gstring, c) \
|