Browse Source

Whoops missed a AF_LOCAL so fix it, and also clean up our custom cdefs header

master
Michael Schloh von Bennewitz 23 years ago committed by Ralf S. Engelschall
parent
commit
22239dbcf3
  1. 38
      honeyd/cdefs.h
  2. 9
      honeyd/honeyd.patch
  3. 2
      honeyd/honeyd.spec

38
honeyd/cdefs.h

@ -25,29 +25,14 @@
*/
/*
** libsm C language portability macros
** See libsm/cdefs.html for documentation.
** BSD and Linux already have <sys/cdefs.h> which defines a set of C
** language portability macros that are a defacto standard in the open
** source community. This file allows for building on platforms lacking
** these definitions.
*/
#ifndef HOND_CDEFS_H
# define HOND_CDEFS_H
/*
** BSD and Linux have <sys/cdefs.h> which defines a set of C language
** portability macros that are a defacto standard in the open source
** community.
*/
# if HOND_CONF_SYS_CDEFS_H
# include <sys/cdefs.h>
# endif /* HOND_CONF_SYS_CDEFS_H */
/*
** Define the standard C language portability macros
** for platforms that lack <sys/cdefs.h>.
*/
# if !HOND_CONF_SYS_CDEFS_H
# if defined(__cplusplus)
# define __BEGIN_DECLS extern "C" {
# define __END_DECLS };
@ -69,13 +54,11 @@
# define signed
# define volatile
# endif /* defined(__STDC__) || defined(__cplusplus) */
# endif /* !HOND_CONF_SYS_CDEFS_H */
/*
** Define HOND_DEAD, a macro used to declare functions that do not return
** to their caller.
*/
# ifndef HOND_DEAD
# if __GNUC__ >= 2
# if __GNUC__ == 2 && __GNUC_MINOR__ < 5
@ -91,7 +74,6 @@
/*
** Define HOND_UNUSED, a macro used to declare variables that may be unused.
*/
# ifndef HOND_UNUSED
# if __GNUC__ >= 2
# if __GNUC__ == 2 && __GNUC_MINOR__ < 7
@ -113,13 +95,13 @@
** using the "volatile" keyword. If a variable actually is volatile,
** then HOND_NONVOLATILE should not be used.
**
** To compile sendmail with gcc and see all non-bogus warnings,
** you should use
** To compile source code with gcc and see all non-bogus warnings use:
**
** gcc -O -Wall -DHOND_OMIT_BOGUS_WARNINGS ...
** Do not use -DHOND_OMIT_BOGUS_WARNINGS when compiling the production
** version of sendmail, because there is a performance hit.
**
** Do not use -DHOND_OMIT_BOGUS_WARNINGS when compiling production
** software, because there is a performance hit.
*/
# ifdef HOND_OMIT_BOGUS_WARNINGS
# define HOND_NONVOLATILE volatile
# else /* HOND_OMIT_BOGUS_WARNINGS */
@ -129,7 +111,6 @@
/*
** Turn on format string argument checking.
*/
# ifndef HOND_CONF_FORMAT_TEST
# if __GNUC__ == 2 && __GNUC_MINOR__ >= 7
# define HOND_CONF_FORMAT_TEST 1
@ -155,3 +136,4 @@
# endif /* ! SCANFLIKE */
#endif /* ! HOND_CDEFS_H */

9
honeyd/honeyd.patch

@ -10,6 +10,15 @@ diff -Naur honeyd-0.6a.orig/honeyd_overload.c honeyd-0.6a/honeyd_overload.c
warn("%s: socketpair", __func__);
return (NULL);
}
@@ -500,7 +500,7 @@
}
/* Get another socketpair */
- if (socketpair(AF_LOCAL, SOCK_STREAM, 0, pair) == -1) {
+ if (socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1) {
DPRINTF((stderr, "%s: socketpair failed", __func__));
errno = ETIMEDOUT; /* XXX */
return (-1);
@@ -607,6 +607,7 @@
}
#endif /* !__FreeBSD__ */

2
honeyd/honeyd.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
Group: Security
License: BSD
Version: 0.6a
Release: 20030925
Release: 20030926
# package options
%option with_fsl yes

Loading…
Cancel
Save