Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

iplist - GCC 4.7 compatibility patch

By: a guest on Apr 16th, 2012  |  syntax: None  |  size: 0.58 KB  |  views: 57  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- a/iplist/src/iplist.cc      2010-10-23 07:54:30.000000000 +0100
  2. +++ b/iplist/src/iplist.cc      2012-04-16 11:50:17.964334537 +0100
  3. @@ -41,6 +41,8 @@
  4.  #include "list.h"
  5.  #include "log.h"
  6.  
  7. +#include <unistd.h>
  8. +
  9.  volatile std::sig_atomic_t iplist::quit = 0;
  10.  int iplist::daemon_flag = 0;
  11.  int iplist::verbose_flag = 0;
  12.  
  13. --- a/iplist/src/main.cc        2010-10-23 07:54:30.000000000 +0100
  14. +++ b/iplist/src/main.cc        2012-04-16 11:50:30.327551072 +0100
  15. @@ -33,6 +33,8 @@
  16.  #include "nfq.h"
  17.  #include "log.h"
  18.  
  19. +#include <unistd.h>
  20. +
  21.  static long pthread_terminate(pthread_t tid)
  22.  {
  23.         void* ret;