Ignore:
Timestamp:
Nov 25, 2016, 8:04:54 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.7

Location:
vendor/current/lib/util
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/lib/util/attr.h

    r988 r989  
    3636
    3737#ifndef _DEPRECATED_
    38 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
     38#ifdef HAVE___ATTRIBUTE__
    3939#define _DEPRECATED_ __attribute__ ((deprecated))
    4040#else
     
    4444
    4545#ifndef _WARN_UNUSED_RESULT_
    46 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
     46#ifdef HAVE___ATTRIBUTE__
    4747#define _WARN_UNUSED_RESULT_ __attribute__ ((warn_unused_result))
    4848#else
     
    5252
    5353#ifndef _NORETURN_
    54 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
     54#ifdef HAVE___ATTRIBUTE__
    5555#define _NORETURN_ __attribute__ ((noreturn))
    5656#else
     
    6060
    6161#ifndef _PURE_
    62 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1)
     62#ifdef HAVE___ATTRIBUTE__
    6363#define _PURE_ __attribute__((pure))
    6464#else
     
    6868
    6969#ifndef NONNULL
    70 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1)
     70#ifdef HAVE___ATTRIBUTE__
    7171#define NONNULL(param) param __attribute__((nonnull))
    7272#else
     
    7676
    7777#ifndef PRINTF_ATTRIBUTE
    78 #if __GNUC__ >= 3
     78#ifdef HAVE___ATTRIBUTE__
    7979/** Use gcc attribute to check printf fns.  a1 is the 1-based index of
    8080 * the parameter containing the format, and a2 the index of the first
     
    8888
    8989#ifndef FORMAT_ATTRIBUTE
    90 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
     90#ifdef HAVE___ATTRIBUTE__
    9191/** Use gcc attribute to check printf fns.  a1 is argument to format()
    9292 * in the above macro.  This is needed to support Heimdal's printf
    9393 * decorations. Note that some gcc 2.x versions don't handle this
    94  * properly, and as such I've used the same minimum from heimdal: GCC 3.1 **/
     94 * properly. **/
    9595#define FORMAT_ATTRIBUTE(a) __attribute__ ((format a))
    9696#else
  • vendor/current/lib/util/become_daemon.c

    r988 r989  
    2525#include "system/filesys.h"
    2626#include "system/locale.h"
    27 #if HAVE_LIBSYSTEMD_DAEMON
     27#if defined(HAVE_LIBSYSTEMD_DAEMON) || defined(HAVE_LIBSYSTEMD)
    2828#include <systemd/sd-daemon.h>
    2929#endif
     
    7070                newpid = fork();
    7171                if (newpid) {
    72 #if HAVE_LIBSYSTEMD_DAEMON
     72#if defined(HAVE_LIBSYSTEMD_DAEMON) || defined(HAVE_LIBSYSTEMD)
    7373                        sd_notifyf(0, "READY=0\nSTATUS=Starting process...\nMAINPID=%lu", (unsigned long) newpid);
    7474#endif /* HAVE_LIBSYSTEMD_DAEMON */
     
    9999_PUBLIC_ void exit_daemon(const char *msg, int error)
    100100{
    101 #ifdef HAVE_LIBSYSTEMD_DAEMON
     101#if defined(HAVE_LIBSYSTEMD_DAEMON) || defined(HAVE_LIBSYSTEMD)
    102102        if (msg == NULL) {
    103103                msg = strerror(error);
     
    118118                name = "Samba";
    119119        }
    120 #ifdef HAVE_LIBSYSTEMD_DAEMON
     120#if defined(HAVE_LIBSYSTEMD_DAEMON) || defined(HAVE_LIBSYSTEMD)
    121121        sd_notifyf(0, "READY=1\nSTATUS=%s: ready to serve connections...", name);
    122122#endif
     
    130130                name = "Samba";
    131131        }
    132 #ifdef HAVE_LIBSYSTEMD_DAEMON
     132#if defined(HAVE_LIBSYSTEMD_DAEMON) || defined(HAVE_LIBSYSTEMD)
    133133        sd_notifyf(0, "\nSTATUS=%s: %s", name, msg);
    134134#endif
  • vendor/current/lib/util/debug.c

    r988 r989  
    103103};
    104104
    105 #if defined(WITH_SYSLOG) || defined(HAVE_LIBSYSTEMD_JOURNAL)
     105#if defined(WITH_SYSLOG) || defined(HAVE_LIBSYSTEMD_JOURNAL) || defined(HAVE_LIBSYSTEMD)
    106106static int debug_level_to_priority(int level)
    107107{
     
    180180#endif /* WITH_SYSLOG */
    181181
    182 #ifdef HAVE_LIBSYSTEMD_JOURNAL
     182#if defined(HAVE_LIBSYSTEMD_JOURNAL) || defined(HAVE_LIBSYSTEMD)
    183183#include <systemd/sd-journal.h>
    184184static void debug_systemd_log(int msg_level,
     
    252252#endif
    253253
    254 #ifdef HAVE_LIBSYSTEMD_JOURNAL
     254#if defined(HAVE_LIBSYSTEMD_JOURNAL) || defined(HAVE_LIBSYSTEMD)
    255255        {
    256256                .name = "systemd",
  • vendor/current/lib/util/wscript_build

    r988 r989  
    7070                    local_include=False)
    7171
    72 bld.SAMBA_LIBRARY('tevent-unix-util',
    73                   source='tevent_unix.c',
    74                   local_include=False,
    75                   deps='tevent',
    76                   public_headers='tevent_unix.h',
    77                   header_path=[ ('*', 'util') ],
    78                   pc_files=[],
    79                   vnum='0.0.1')
     72if bld.env.SAMBA_UTIL_CORE_ONLY:
    8073
    81 if not bld.env.SAMBA_UTIL_CORE_ONLY:
     74    bld.SAMBA_LIBRARY('tevent-util',
     75                      source='tevent_unix.c',
     76                      local_include=False,
     77                      deps='tevent',
     78                      private_library=True)
     79
     80else:
    8281
    8382    bld.env.public_headers_skip.append('charset_compat.h')
     
    142141
    143142    bld.SAMBA_LIBRARY('tevent-util',
    144                       source='tevent_ntstatus.c tevent_werror.c',
     143                      source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
    145144                      local_include=False,
    146                       public_deps='tevent samba-errors tevent-unix-util',
    147                       public_headers='tevent_ntstatus.h tevent_werror.h',
     145                      public_deps='tevent samba-errors',
     146                      public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
    148147                      header_path=[ ('*', 'util') ],
    149148                      pc_files=[],
Note: See TracChangeset for help on using the changeset viewer.