Przeglądaj źródła

Merge branch 'maint'

* maint:
  Make bfd happy with the OpenSSL forward compat
  Revert "No need to call irc_log as it does nothing."

Conflicts:
	src/log.h
Bryan Drewery 6 lat temu
rodzic
commit
7e20083cff
4 zmienionych plików z 6 dodań i 6 usunięć
  1. 1 0
      src/generate_defs.sh
  2. 0 2
      src/log.cc
  3. 0 4
      src/log.h
  4. 5 0
      src/main.cc

+ 1 - 0
src/generate_defs.sh

@@ -31,6 +31,7 @@ for file in ${files}; do
 done
 
 echo "{" > $exportsFile
+echo "bfd_exports_stub;" >> $exportsFile
 for file in ${files}; do
   suffix=${file##*.}
   basename=${file%%.*}

+ 0 - 2
src/log.cc

@@ -335,7 +335,6 @@ void putlog(int type, const char *chname, const char *format, ...)
   }
 }
 
-#if 0
 void
 irc_log(struct chanset_t *chan, const char *format, ...)
 {
@@ -363,5 +362,4 @@ irc_log(struct chanset_t *chan, const char *format, ...)
 */
 #endif 
 }
-#endif
 /* vim: set sts=2 sw=2 ts=8 et: */

+ 0 - 4
src/log.h

@@ -33,11 +33,7 @@ void putlog (int, const char *, const char *, ...) __attribute__((format(printf,
 int logmodes(const char *) __attribute__((pure));
 char *masktype(int);
 char *maskname(int);
-#if 0
 void irc_log(struct chanset_t *, const char *, ...) __attribute__((format(printf, 2, 3)));
-#else
-#define irc_log(...) do {} while (0)
-#endif
 void logfile(int type, const char *msg);
 
 extern int		conmask;

+ 5 - 0
src/main.cc

@@ -934,4 +934,9 @@ int main(int argc, char **argv)
 
   return 0;		/* never reached but what the hell */
 }
+
+/* bfd doesn't link empty --dynamic-list file. */
+void bfd_exports_stub(void)
+{
+}
 /* vim: set sts=2 sw=2 ts=8 et: */