Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/compat/base64.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
#include <arpa/nameser.h>

#include <ctype.h>
#include <resolv.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down
1 change: 0 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@

#include <errno.h>
#include <fcntl.h>
#include <resolv.h>
#include <setjmp.h>
#include <signal.h>

Expand Down
9 changes: 9 additions & 0 deletions src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@
#endif

#include <sys/types.h>

#undef answer /* before resolv.h because it could collide with src/mod/module.h
* (dietlibc) */
#include <resolv.h> /* base64 encode b64_ntop() and base64 decode b64_pton() */
#ifndef HAVE_BASE64
# undef b64_ntop
# undef b64_pton
#endif

#include "lush.h"
#include "lang.h"
#include "eggdrop.h"
Expand Down
5 changes: 2 additions & 3 deletions src/mod/dns.mod/coredns.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@
* Released under the GPL, as above.
*/

#include "src/mod/module.h"

#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <arpa/nameser.h>
#undef answer /* before resolv.h because it could collide with src/mod/module.h
(dietlibc) */
#include <resolv.h>
#include <errno.h>

/* OpenBSD */
Expand Down
1 change: 0 additions & 1 deletion src/mod/pbkdf2.mod/pbkdf2.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ static Function *global = NULL; /* before tclpbkdf2.c */

#define MODULE_NAME "encryption2"

#include <resolv.h> /* base64 encode b64_ntop() and base64 decode b64_pton() */
#include <openssl/err.h>
#include <openssl/rand.h>

Expand Down
8 changes: 7 additions & 1 deletion src/mod/python.mod/configure
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /bin/sh
# From configure.ac 63ef680.
# From configure.ac .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71 for Eggdrop Python Module 1.10.0.
#
Expand Down Expand Up @@ -2062,6 +2062,12 @@ fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python C flags" >&5
printf %s "checking for python C flags... " >&6; }
PYTHON_CFLAGS=`$python_config_bin $PYTHON_CONFIG_ARGS --cflags`
# remove preprocessor args
PYTHON_CFLAGS=`echo $PYTHON_CFLAGS | sed 's/-Wp,.*//'`
# remove march
PYTHON_CFLAGS=`echo $PYTHON_CFLAGS | sed 's/-march=[^ ]*//g'`
# remove mtune
PYTHON_CFLAGS=`echo $PYTHON_CFLAGS | sed 's/-mtune=[^ ]*//g'`
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CFLAGS" >&5
printf "%s\n" "$PYTHON_CFLAGS" >&6; }

Expand Down
6 changes: 6 additions & 0 deletions src/mod/python.mod/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ if test "x$python_config_bin" != "x"; then

AC_MSG_CHECKING([for python C flags])
PYTHON_CFLAGS=`$python_config_bin $PYTHON_CONFIG_ARGS --cflags`
# remove preprocessor args
PYTHON_CFLAGS=`echo $PYTHON_CFLAGS | sed 's/-Wp,.*//'`
# remove march
PYTHON_CFLAGS=`echo $PYTHON_CFLAGS | sed 's/-march=@<:@^ @:>@*//g'`
# remove mtune
PYTHON_CFLAGS=`echo $PYTHON_CFLAGS | sed 's/-mtune=@<:@^ @:>@*//g'`
AC_MSG_RESULT([$PYTHON_CFLAGS])
AC_SUBST(PYTHON_CFLAGS)

Expand Down
4 changes: 1 addition & 3 deletions src/mod/server.mod/sasl.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
* Copyright (C) 2019 - 2025 Eggheads Development Team
*/

#undef answer /* before resolv.h because it could collide with src/mod/module.h
* (dietlibc) */
#include <resolv.h> /* base64 encode b64_ntop() and base64 decode b64_pton() */
#include "src/mod/module.h"

/* RFC 5802 - printable ASCII characters excluding ','
* printable = %x21-2B / %x2D-7E
Expand Down
Loading