"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libs/src/portable/libportable.h" between
xinetd-2.3.15.tar.gz and xinetd-2.3.15.4.tar.xz

About: xinetd is a secure replacement for inetd, the internet services daemon (openSUSE fork).

libportable.h  (xinetd-2.3.15):libportable.h  (xinetd-2.3.15.4.tar.xz)
skipping to change at line 18 skipping to change at line 18
#include <netdb.h> #include <netdb.h>
#ifndef IPV6_ADDRFORM #ifndef IPV6_ADDRFORM
#define IPV6_ADDRFORM 1 #define IPV6_ADDRFORM 1
#endif #endif
#ifndef NI_MAXHOST #ifndef NI_MAXHOST
#define NI_MAXHOST 1025 #define NI_MAXHOST 1025
#endif #endif
#ifndef HAVE_DIFFTIME
double difftime( time_t, time_t );
#endif
#ifndef HAVE_STRCASECMP
int strcasecmp(const char *s1, const char *s2);
#endif
#ifndef HAVE_STRERROR
char * strerror(int);
#endif
#ifdef NO_INET_ATON
int inet_aton(const char *cp, struct in_addr *addr);
#endif
#ifndef HAVE_GETNAMEINFO
int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
size_t hostlen, char *serv, size_t servlen, int flags);
#endif
#ifndef HAVE_INET_NTOP
const char *inet_ntop(int, const void *, char *, size_t);
#endif
#ifndef APPEND #ifndef APPEND
#define APPEND(a, b) APPEND2 (a, b) #define APPEND(a, b) APPEND2 (a, b)
#endif #endif
#ifndef APPEND2 #ifndef APPEND2
#define APPEND2(a, b) a##b #define APPEND2(a, b) a##b
#endif #endif
#ifndef FLOAT_TYPE #ifndef FLOAT_TYPE
#define FLOAT_TYPE double #define FLOAT_TYPE double
#endif #endif
#ifndef FUNC_PREFIX #ifndef FUNC_PREFIX
#define FUNC_PREFIX #define FUNC_PREFIX
#endif #endif
#ifndef HAVE_FCVT
int APPEND(FUNC_PREFIX,fcvt_r)(FLOAT_TYPE value,int ndigit,int *decpt,int *sign,
char *buf,size_t len);
char *APPEND(FUNC_PREFIX,fcvt)(FLOAT_TYPE value,int ndigit,int *decpt,int *sign)
;
#endif
#ifndef HAVE_ECVT
char *APPEND(FUNC_PREFIX,ecvt)(FLOAT_TYPE value,int ndigit,int *decpt,int *sign)
;
int APPEND(FUNC_PREFIX,ecvt_r)(FLOAT_TYPE value,int ndigit,int *decpt,int *sign,
char *buf,size_t len);
#endif
#ifndef HAVE_GCVT
char *APPEND(FUNC_PREFIX,gcvt)(FLOAT_TYPE value,int ndigit,char *buf);
#endif
/* from OpenSSH's fake-socket.h */ /* from OpenSSH's fake-socket.h */
#ifndef HAVE_STRUCT_SOCKADDR_STORAGE
# define _SS_MAXSIZE 128 /* Implementation specific max size */
# define _SS_PADSIZE (_SS_MAXSIZE - sizeof (struct sockaddr))
struct sockaddr_storage {
struct sockaddr ss_sa;
char __ss_pad2[_SS_PADSIZE];
};
# define ss_family ss_sa.sa_family
#endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */
#ifndef IN6_IS_ADDR_LOOPBACK #ifndef IN6_IS_ADDR_LOOPBACK
# define IN6_IS_ADDR_LOOPBACK(a) \ # define IN6_IS_ADDR_LOOPBACK(a) \
(((uint32_t *) (a))[0] == 0 && ((uint32_t *) (a))[1] == 0 && \ (((uint32_t *) (a))[0] == 0 && ((uint32_t *) (a))[1] == 0 && \
((uint32_t *) (a))[2] == 0 && ((uint32_t *) (a))[3] == htonl (1)) ((uint32_t *) (a))[2] == 0 && ((uint32_t *) (a))[3] == htonl (1))
#endif /* !IN6_IS_ADDR_LOOPBACK */ #endif /* !IN6_IS_ADDR_LOOPBACK */
#ifndef HAVE_STRUCT_IN6_ADDR
struct in6_addr {
uint8_t s6_addr[16];
};
#endif /* !HAVE_STRUCT_IN6_ADDR */
#ifndef HAVE_STRUCT_SOCKADDR_IN6
struct sockaddr_in6 {
unsigned short sin6_family;
uint16_t sin6_port;
uint32_t sin6_flowinfo;
struct in6_addr sin6_addr;
};
#endif /* !HAVE_STRUCT_SOCKADDR_IN6 */
#ifndef AF_INET6 #ifndef AF_INET6
/* Define it to something that should never appear */ /* Define it to something that should never appear */
#define AF_INET6 AF_MAX #define AF_INET6 AF_MAX
#endif #endif
#endif /* _XINETD_LIBPORTABLE */ #endif /* _XINETD_LIBPORTABLE */
 End of changes. 4 change blocks. 
67 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)