1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/lib/replace/system
Ralph Boehme 48ed60d7fd lib/replace: work around an API conflict between ncurses and XFS xattr API
Compile error:

  [4530/4693] Compiling source3/utils/regedit_list.c
  In file included from ../../source3/utils/regedit_list.h:24,
                   from ../../source3/utils/regedit_list.c:20:
  /usr/include/curses.h:611:28: error: conflicting types for ‘attr_get’
    611 | extern NCURSES_EXPORT(int) attr_get (attr_t *, NCURSES_PAIRS_T *, void *); /* generated */
        |                            ^~~~~~~~
  compilation terminated due to -Wfatal-errors.

Both ncurses and XFS xattr API provide a get_attr() function. As a workaround
avoid including <sys|attr/attributes.h> if <attr|sys/xattr.h> is present.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Dec 12 20:22:51 UTC 2019 on sn-devel-184
2019-12-12 20:22:51 +00:00
..
capability.h replace: only include <sys/capability.h> with HAVE_POSIX_CAPABILITIES 2019-01-29 22:09:07 +01:00
dir.h replace: Use #ifdef instead of #if for config.h definitions 2018-11-28 23:19:21 +01:00
filesys.h lib/replace: work around an API conflict between ncurses and XFS xattr API 2019-12-12 20:22:51 +00:00
glob.h
gssapi.h replace: Fix checking for config.h #define in gssapi.h 2018-12-16 21:04:09 +01:00
iconv.h
kerberos.h replace: Use #ifdef instead of #if for config.h definitions 2018-11-28 23:19:21 +01:00
locale.h
network.h replace: make sure we have a SCOPE_DELIMITER define 2016-12-09 16:58:11 +01:00
nis.h lib/replace: Remove #undef TCP_NODELAY 2019-06-18 06:47:05 +00:00
passwd.h replace: Fix includes of unistd.h 2014-09-19 18:11:11 +02:00
readline.h replace: Fix checking for config.h #define in readline.h 2018-12-16 21:04:09 +01:00
README
select.h Add Solaris ports as a tevent backend. 2015-02-15 23:25:07 +01:00
shmem.h
syslog.h
terminal.h
threads.h replace: add checks for atomic_thread_fence(memory_order_seq_cst) and add possible fallbacks 2018-07-24 17:38:26 +02:00
time.h replace: ensure UTIME_NOW and UTIME_OMIT are always available 2019-12-06 00:17:35 +00:00
wait.h lib:replace: Missing semicolon on function definition. 2016-04-02 06:04:13 +02:00
wscript_configure replace: remove some duplicate checks 2018-02-21 14:19:17 +01:00

This directory contains wrappers around logical groups of system
include files. The idea is to avoid #ifdef blocks in the main code,
and instead put all the necessary conditional includes in subsystem
specific header files in this directory.