summaryrefslogtreecommitdiffstats
path: root/debian/header-remove-_PUBLIC_-define.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 16:49:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 16:49:38 +0000
commit65fbc59ab338590dff1fc4b64efadc8c8dd1f225 (patch)
treeb8679db8dd0d560db01ed978e5243cdfe1acdb3f /debian/header-remove-_PUBLIC_-define.patch
parentAdding upstream version 1.4.10. (diff)
downloadtdb-65fbc59ab338590dff1fc4b64efadc8c8dd1f225.tar.xz
tdb-65fbc59ab338590dff1fc4b64efadc8c8dd1f225.zip
Adding debian version 1.4.10-1.debian/1.4.10-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/header-remove-_PUBLIC_-define.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/header-remove-_PUBLIC_-define.patch b/debian/header-remove-_PUBLIC_-define.patch
new file mode 100644
index 0000000..10557d1
--- /dev/null
+++ b/debian/header-remove-_PUBLIC_-define.patch
@@ -0,0 +1,29 @@
+From: Michael Tokarev <mjt@tls.msk.ru>
+Date: Sun, 10 Apr 2022 00:06:35 +0300
+Subject: header: remove _PUBLIC_ define
+
+Samba installs public headers with _PUBLIC_ markers for all externally-visible
+symbols. And it also defines _PUBLIC_ if it is not already defined.
+This define should be removed, because it is in an reserved namespace, and
+because it already stays in conflict with samba own headers of libraries it
+is building internally. The markers for every symbol are removed separately,
+this patch removes the _PUBLIC_ definition itself.
+
+diff --git a/talloc.h b/talloc.h
+index 06e81d7..dbf35b5 100644
+--- a/talloc.h
++++ b/talloc.h
+@@ -36,13 +35,0 @@ extern "C" {
+-/* for old gcc releases that don't have the feature test macro __has_attribute */
+-#ifndef __has_attribute
+-#define __has_attribute(x) 0
+-#endif
+-
+-#ifndef _PUBLIC_
+-#if __has_attribute(visibility)
+-#define _PUBLIC_ __attribute__((visibility("default")))
+-#else
+-#define _PUBLIC_
+-#endif
+-#endif
+-