Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/lib/replace/system/config.m4

    r620 r745  
    77AC_CHECK_HEADERS(sys/select.h)
    88
     9# poll
     10AC_CHECK_HEADERS(poll.h)
     11AC_CHECK_FUNCS(poll,[],[LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/poll.o"])
     12
    913# time
    1014AC_CHECK_HEADERS(sys/time.h utime.h)
    1115AC_HEADER_TIME
    1216AC_CHECK_FUNCS(utime utimes)
     17
     18AC_CACHE_CHECK([if gettimeofday takes TZ argument],libreplace_cv_HAVE_GETTIMEOFDAY_TZ,[
     19AC_TRY_RUN([
     20#include <sys/time.h>
     21#include <unistd.h>
     22main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}],
     23           libreplace_cv_HAVE_GETTIMEOFDAY_TZ=yes,libreplace_cv_HAVE_GETTIMEOFDAY_TZ=no,libreplace_cv_HAVE_GETTIMEOFDAY_TZ=yes)])
     24if test x"$libreplace_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
     25    AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available])
     26fi
    1327
    1428# wait
  • trunk/server/lib/replace/system/network.h

    r480 r745  
    310310#define ss_family sin6_family
    311311#define HAVE_SS_FAMILY 1
    312 #else
     312#else /*HAVE_STRUCT_SOCKADDR_IN6*/
    313313#define sockaddr_storage sockaddr_in
    314314#define ss_family sin_family
    315315#define HAVE_SS_FAMILY 1
    316 #endif
    317 #endif
     316#endif /*HAVE_STRUCT_SOCKADDR_IN6*/
     317#endif /*HAVE_STRUCT_SOCKADDR_STORAGE*/
    318318
    319319#ifndef HAVE_SS_FAMILY
     
    334334     */
    335335#   define IOV_MAX 512
    336 #  else
    337 #   error IOV_MAX and UIO_MAXIOV undefined
    338336#  endif
    339337# endif
  • trunk/server/lib/replace/system/passwd.h

    r456 r745  
    102102
    103103#ifdef NSS_WRAPPER
     104#ifndef NSS_WRAPPER_DISABLE
    104105#ifndef NSS_WRAPPER_NOT_REPLACE
    105106#define NSS_WRAPPER_REPLACE
    106 #endif
     107#endif /* NSS_WRAPPER_NOT_REPLACE */
    107108#include "../nss_wrapper/nss_wrapper.h"
    108 #endif
     109#endif /* NSS_WRAPPER_DISABLE */
     110#endif /* NSS_WRAPPER */
    109111
    110112#endif
  • trunk/server/lib/replace/system/readline.h

    r414 r745  
    4444
    4545#ifdef HAVE_NEW_LIBREADLINE
    46 #  define RL_COMPLETION_CAST (rl_completion_func_t *)
     46#ifdef HAVE_CPPFUNCTION
     47#  define RL_COMPLETION_CAST (CPPFunction *)
     48#elif HAVE_RL_COMPLETION_T
     49#  define RL_COMPLETION_CAST (rl_completion_t *)
     50#else
     51#  define RL_COMPLETION_CAST
     52#endif
    4753#else
    4854/* This type is missing from libreadline<4.0  (approximately) */
  • trunk/server/lib/replace/system/select.h

    r414 r745  
    3939#endif
    4040
     41#ifdef HAVE_POLL
     42
     43#include <poll.h>
     44
     45#else
     46
     47/* Type used for the number of file descriptors.  */
     48typedef unsigned long int nfds_t;
     49
     50/* Data structure describing a polling request.  */
     51struct pollfd
     52{
     53        int fd;            /* File descriptor to poll.  */
     54        short int events;  /* Types of events poller cares about.  */
     55        short int revents; /* Types of events that actually occurred.  */
     56};
     57
     58/* Event types that can be polled for.  These bits may be set in `events'
     59   to indicate the interesting event types; they will appear in `revents'
     60   to indicate the status of the file descriptor.  */
     61#define POLLIN          0x001           /* There is data to read.  */
     62#define POLLPRI         0x002           /* There is urgent data to read.  */
     63#define POLLOUT         0x004           /* Writing now will not block.  */
     64#define POLLRDNORM      0x040           /* Normal data may be read.  */
     65#define POLLRDBAND      0x080           /* Priority data may be read.  */
     66#define POLLWRNORM      0x100           /* Writing now will not block.  */
     67#define POLLWRBAND      0x200           /* Priority data may be written.  */
     68#define POLLERR         0x008           /* Error condition.  */
     69#define POLLHUP         0x010           /* Hung up.  */
     70#define POLLNVAL        0x020           /* Invalid polling request.  */
     71
     72/* define is in "replace.h" */
     73int rep_poll(struct pollfd *fds, nfds_t nfds, int timeout);
     74
    4175#endif
     76
     77#endif
  • trunk/server/lib/replace/system/time.h

    r414 r745  
    4747#endif
    4848
     49#ifndef HAVE_STRUCT_TIMESPEC
     50struct timespec {
     51        time_t tv_sec;            /* Seconds.  */
     52        long tv_nsec;           /* Nanoseconds.  */
     53};
     54#endif
     55
    4956#ifndef HAVE_MKTIME
    5057/* define is in "replace.h" */
     
    6774#endif
    6875
     76#ifndef HAVE_CLOCK_GETTIME
     77/* CLOCK_REALTIME is required by POSIX */
     78#define CLOCK_REALTIME 0
     79typedef int clockid_t;
     80int rep_clock_gettime(clockid_t clk_id, struct timespec *tp);
    6981#endif
     82/* make sure we have a best effort CUSTOM_CLOCK_MONOTONIC we can rely on */
     83#if defined(CLOCK_MONOTONIC)
     84#define CUSTOM_CLOCK_MONOTONIC CLOCK_MONOTONIC
     85#elif defined(CLOCK_HIGHRES)
     86#define CUSTOM_CLOCK_MONOTONIC CLOCK_HIGHRES
     87#else
     88#define CUSTOM_CLOCK_MONOTONIC CLOCK_REALTIME
     89#endif
     90
     91#endif
  • trunk/server/lib/replace/system/wait.h

    r620 r745  
    3737#endif
    3838
    39 #ifndef SIGNAL_CAST
    40 #define SIGNAL_CAST (RETSIGTYPE (*)(int))
    41 #endif
    42 
    4339#ifdef HAVE_SETJMP_H
    4440#include <setjmp.h>
Note: See TracChangeset for help on using the changeset viewer.