From: Kevin McCarthy Date: Mon, 9 May 2016 21:06:59 +0000 (-0700) Subject: Back out wrapper sys_socket.h workaround (23334e967dd7) X-Git-Tag: neomutt-20160822~150 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa5ec0c19c55273803fc4abb76d3c0775095c1a3;p=neomutt Back out wrapper sys_socket.h workaround (23334e967dd7) After renaming all internal macros from M_* to MUTT_*, the sys_socket.h workaround is no longer necessary. --- diff --git a/Makefile.am b/Makefile.am index 9ee3faecb..9afb6ce74 100644 --- a/Makefile.am +++ b/Makefile.am @@ -72,7 +72,7 @@ EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP OPS.CRYPT OPS.SMIME TODO UPDATING \ README.SSL smime.h group.h \ muttbug pgppacket.h depcomp ascii.h BEWARE PATCHES patchlist.sh \ ChangeLog mkchangelog.sh mutt_idna.h \ - snprintf.c regex.c crypt-gpgme.h hcachever.sh.in sys_socket.h \ + snprintf.c regex.c crypt-gpgme.h hcachever.sh.in \ txt2c.c txt2c.sh version.sh check_sec.sh EXTRA_SCRIPTS = smime_keys diff --git a/getdomain.c b/getdomain.c index 9bc0c91e3..209848b79 100644 --- a/getdomain.c +++ b/getdomain.c @@ -24,7 +24,7 @@ #include #include #include -#include "sys_socket.h" +#include #include "mutt.h" diff --git a/mutt_sasl.c b/mutt_sasl.c index bfead82f9..267a59a6a 100644 --- a/mutt_sasl.c +++ b/mutt_sasl.c @@ -30,7 +30,7 @@ #include #include #include -#include "sys_socket.h" +#include #include static int getnameinfo_err(int ret) diff --git a/mutt_socket.c b/mutt_socket.c index 0499ba1e6..a2c489f65 100644 --- a/mutt_socket.c +++ b/mutt_socket.c @@ -40,7 +40,7 @@ #ifdef HAVE_SYS_TIME_H #include #endif -#include "sys_socket.h" +#include #ifdef HAVE_SYS_SELECT_H #include #endif diff --git a/mutt_tunnel.c b/mutt_tunnel.c index 49172160c..b43bbf935 100644 --- a/mutt_tunnel.c +++ b/mutt_tunnel.c @@ -27,7 +27,7 @@ #include #include -#include "sys_socket.h" +#include #include #include #include diff --git a/sys_socket.h b/sys_socket.h deleted file mode 100644 index 68ffe2500..000000000 --- a/sys_socket.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2016 Kevin J. McCarthy - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -/* Solaris, OpenIndiana, and probably other derivatives - * are including sys/stream.h inside their sys/socket.h. - * - * This include file is defining macros M_CMD and M_READ which - * are conflicting with the same macros Mutt defines in mutt.h - * - * To minimize breakage with out-of-tree patches, this is a workaround. - */ - -#ifdef M_CMD -# define MUTT_ORIG_CMD M_CMD -# undef M_CMD -#endif - -#ifdef M_READ -# define MUTT_ORIG_READ M_READ -# undef M_READ -#endif - -#include - -#undef M_CMD -#undef M_READ - -#ifdef MUTT_ORIG_CMD -# define M_CMD MUTT_ORIG_CMD -# undef MUTT_ORIG_CMD -#endif - -#ifdef MUTT_ORIG_READ -# define M_READ MUTT_ORIG_READ -# undef MUTT_ORIG_READ -#endif