Fix missing includes exposed by newer GCC
This commit is contained in:
parent
8f14c1bedc
commit
54497db700
7 changed files with 77 additions and 1 deletions
|
@ -1,9 +1,12 @@
|
|||
--- src/Public.cpp.orig 2008-06-02 16:30:03 +0300
|
||||
+++ src/Public.cpp 2008-06-02 16:31:17 +0300
|
||||
@@ -16,6 +16,10 @@
|
||||
--- src/Public.cpp.orig 2011-11-24 03:07:17.000000000 +0000
|
||||
+++ src/Public.cpp
|
||||
@@ -16,6 +16,11 @@
|
||||
#include <sys/param.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <unistd.h>
|
||||
+ #include <string.h>
|
||||
+ #ifdef __DragonFly__
|
||||
+ #include <vm/vm_param.h>
|
||||
+ #include <sys/vmmeter.h>
|
||||
|
|
12
security/rainbowcrack/patches/patch-src_ChainWalkContext.cpp
Normal file
12
security/rainbowcrack/patches/patch-src_ChainWalkContext.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
$NetBSD: patch-src_ChainWalkContext.cpp,v 1.1 2011/11/24 13:35:52 joerg Exp $
|
||||
|
||||
--- src/ChainWalkContext.cpp.orig 2011-11-24 03:08:16.000000000 +0000
|
||||
+++ src/ChainWalkContext.cpp
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#include "ChainWalkContext.h"
|
||||
|
||||
+#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <openssl/rand.h>
|
||||
#ifdef _WIN32
|
12
security/rainbowcrack/patches/patch-src_ChainWalkSet.cpp
Normal file
12
security/rainbowcrack/patches/patch-src_ChainWalkSet.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
$NetBSD: patch-src_ChainWalkSet.cpp,v 1.1 2011/11/24 13:35:52 joerg Exp $
|
||||
|
||||
--- src/ChainWalkSet.cpp.orig 2011-11-24 03:09:44.000000000 +0000
|
||||
+++ src/ChainWalkSet.cpp
|
||||
@@ -8,6 +8,7 @@
|
||||
#pragma warning(disable : 4786)
|
||||
#endif
|
||||
|
||||
+#include <string.h>
|
||||
#include "ChainWalkSet.h"
|
||||
|
||||
CChainWalkSet::CChainWalkSet()
|
12
security/rainbowcrack/patches/patch-src_RainbowCrack.cpp
Normal file
12
security/rainbowcrack/patches/patch-src_RainbowCrack.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
$NetBSD: patch-src_RainbowCrack.cpp,v 1.1 2011/11/24 13:35:52 joerg Exp $
|
||||
|
||||
--- src/RainbowCrack.cpp.orig 2011-11-24 03:10:04.000000000 +0000
|
||||
+++ src/RainbowCrack.cpp
|
||||
@@ -9,6 +9,7 @@
|
||||
#endif
|
||||
|
||||
#include "CrackEngine.h"
|
||||
+#include <string.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <io.h>
|
12
security/rainbowcrack/patches/patch-src_RainbowTableDump.cpp
Normal file
12
security/rainbowcrack/patches/patch-src_RainbowTableDump.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
$NetBSD: patch-src_RainbowTableDump.cpp,v 1.1 2011/11/24 13:35:52 joerg Exp $
|
||||
|
||||
--- src/RainbowTableDump.cpp.orig 2011-11-24 03:09:01.000000000 +0000
|
||||
+++ src/RainbowTableDump.cpp
|
||||
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include "ChainWalkContext.h"
|
||||
+#include <stdlib.h>
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
|
@ -0,0 +1,13 @@
|
|||
$NetBSD: patch-src_RainbowTableGenerate.cpp,v 1.1 2011/11/24 13:35:52 joerg Exp $
|
||||
|
||||
--- src/RainbowTableGenerate.cpp.orig 2011-11-24 03:07:52.000000000 +0000
|
||||
+++ src/RainbowTableGenerate.cpp
|
||||
@@ -13,6 +13,8 @@
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
+#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "ChainWalkContext.h"
|
12
security/rainbowcrack/patches/patch-src_RainbowTableSort.cpp
Normal file
12
security/rainbowcrack/patches/patch-src_RainbowTableSort.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
$NetBSD: patch-src_RainbowTableSort.cpp,v 1.1 2011/11/24 13:35:52 joerg Exp $
|
||||
|
||||
--- src/RainbowTableSort.cpp.orig 2011-11-24 03:09:27.000000000 +0000
|
||||
+++ src/RainbowTableSort.cpp
|
||||
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include "Public.h"
|
||||
+#include <stdlib.h>
|
||||
|
||||
#define ASSUMED_MIN_MEMORY 32 * 1024 * 1024
|
||||
|
Loading…
Reference in a new issue