diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-03-23 04:19:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-03-23 04:19:44 +0000 |
commit | c5283d322accc6097afec74eab24550829788bab (patch) | |
tree | b99ce668128d82a026eaa31461643f9173f9b77b /net-irc/emech/files/emech-3.0.99_p3-buildfix.patch | |
parent | 5510d9d7d1c93c2ea71a2bd6f0666168808d5dd6 (diff) |
gentoo resync : 23.03.2018
Diffstat (limited to 'net-irc/emech/files/emech-3.0.99_p3-buildfix.patch')
-rw-r--r-- | net-irc/emech/files/emech-3.0.99_p3-buildfix.patch | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/net-irc/emech/files/emech-3.0.99_p3-buildfix.patch b/net-irc/emech/files/emech-3.0.99_p3-buildfix.patch new file mode 100644 index 000000000000..de1dee6ed673 --- /dev/null +++ b/net-irc/emech/files/emech-3.0.99_p3-buildfix.patch @@ -0,0 +1,70 @@ +diff -Naur emech-3.0.99p3.org/src/gencmd.c emech-3.0.99p3/src/gencmd.c +--- emech-3.0.99p3.org/src/gencmd.c 2009-05-13 08:51:09.000000000 -0000 ++++ emech-3.0.99p3/src/gencmd.c 2018-03-16 22:52:42.591033854 -0000 +@@ -316,7 +316,7 @@ + } + if (pass == __struct_acces) + { +- printf("\t%i,\t/""* %s *""/\n", ++ printf("\t%li,\t/""* %s *""/\n", + pre_mcmd[wh].flags & CLEVEL, + pt); + } +@@ -390,7 +390,7 @@ + } + pass--; + } +- printf("#define LOCALHOST_ULONG %lu\n",inet_addr("127.1")); ++ printf("#define LOCALHOST_ULONG %u\n",inet_addr("127.1")); + printf("#else /""* MAIN_C *""/\n\n"); + printf("extern OnMsg mcmd[];\n"); + printf("extern OnMsg_access acmd[];\n\n"); +@@ -404,29 +404,29 @@ + + #ifdef BOTNET + combo.comboflags = 0; combo.x.noshare = 1; +- fprintf(of,"#define COMBO_NOSHARE\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_NOSHARE\t0x%lx\n",combo.comboflags); + combo.comboflags = 0; combo.x.readonly = 1; +- fprintf(of,"#define COMBO_READONLY\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_READONLY\t0x%lx\n",combo.comboflags); + #endif /* BOTNET */ + + #ifdef GREET + combo.comboflags = 0; combo.x.greetfile = 1; +- fprintf(of,"#define COMBO_GREETFILE\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_GREETFILE\t0x%lx\n",combo.comboflags); + combo.comboflags = 0; combo.x.randline = 1; +- fprintf(of,"#define COMBO_RANDLINE\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_RANDLINE\t0x%lx\n",combo.comboflags); + #endif /* GREET */ + + #ifdef BOUNCE + combo.comboflags = 0; combo.x.bounce = 1; +- fprintf(of,"#define COMBO_BOUNCE\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_BOUNCE\t0x%lx\n",combo.comboflags); + #endif /* BOUNCE */ + + combo.comboflags = 0; combo.x.echo = 1; +- fprintf(of,"#define COMBO_ECHO\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_ECHO\t0x%lx\n",combo.comboflags); + combo.comboflags = 0; combo.x.aop = 1; +- fprintf(of,"#define COMBO_AOP\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_AOP\t0x%lx\n",combo.comboflags); + combo.comboflags = 0; combo.x.avoice = 1; +- fprintf(of,"#define COMBO_AVOICE\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_AVOICE\t0x%lx\n",combo.comboflags); + + fclose(of); + return(0); +diff -Naur emech-3.0.99p3.org/src/function.c emech-3.0.99p3/src/function.c +--- emech-3.0.99p3.org/src/function.c 2009-05-17 20:25:29.000000000 -0000 ++++ emech-3.0.99p3/src/function.c 2018-03-17 11:41:15.224075216 -0000 +@@ -26,6 +26,7 @@ + #include "global.h" + #include "h.h" + #include "text.h" ++#include "linux/limits.h" + + LS char timebuf[24]; /* max format lentgh == 20+1, round up to nearest longword -> 24 */ + LS char idlestr[36]; /* max format lentgh == 24+1, round up to nearest longword -> 28 */ |