mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
dmitry: fix build on gcc 14
This commit is contained in:
parent
f90d0a338d
commit
f75aad0981
2 changed files with 34 additions and 4 deletions
28
pkgs/by-name/dm/dmitry/implicit-function-declaration.patch
Normal file
28
pkgs/by-name/dm/dmitry/implicit-function-declaration.patch
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
src/dmitry.c | 1 +
|
||||
src/file.c | 2 ++
|
||||
2 files changed, 3 insertions(+)
|
||||
|
||||
diff --git a/src/dmitry.c b/src/dmitry.c
|
||||
index d47f231..567482d 100644
|
||||
--- a/src/dmitry.c
|
||||
+++ b/src/dmitry.c
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
+#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
diff --git a/src/file.c b/src/file.c
|
||||
index f4ad48b..3714786 100644
|
||||
--- a/src/file.c
|
||||
+++ b/src/file.c
|
||||
@@ -1,4 +1,6 @@
|
||||
#include "includes/file.h"
|
||||
+#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
int file_prep()
|
||||
{
|
||||
outputfile[strlen(outputfile)] = '\0';
|
|
@ -16,16 +16,18 @@ stdenv.mkDerivation {
|
|||
hash = "sha256-cYFeBM8xFMaLXYk6Rg+5JvfbbIJI9F3mefzCX3+XbB0=";
|
||||
};
|
||||
|
||||
patches = [ ./implicit-function-declaration.patch ];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = toString [ "-fcommon" ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Deepmagic Information Gathering Tool";
|
||||
mainProgram = "dmitry";
|
||||
homepage = "https://github.com/jaygreig86/dmitry";
|
||||
maintainers = with maintainers; [ d3vil0p3r ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [ d3vil0p3r ];
|
||||
platforms = lib.platforms.linux;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue