forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
freesweep: 1.0.2 -> 1.1.0-unstable-2024-04-19
freesweep has a new version in development and it seems to be usable, let's update to it. I added myself as a maintainer and included a few patches to allow it to build with and without mlibc (which I'm working on in NixOS#371092).
- Loading branch information
Showing
4 changed files
with
59 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/sweep.h b/sweep.h | ||
index 198349d..549f39f 100644 | ||
--- a/sweep.h | ||
+++ b/sweep.h | ||
@@ -32,6 +32,10 @@ | ||
#include <string.h> | ||
#endif /* HAVE_STRING_H */ | ||
|
||
+#ifdef HAVE_STRINGS_H | ||
+#include <strings.h> | ||
+#endif /* HAVE_STRINGS_H */ | ||
+ | ||
#ifdef HAVE_GETOPT_H | ||
#include <getopt.h> | ||
#endif /* HAVE_GETOPT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/logs.c b/logs.c | ||
index 5e87f52..29ad433 100644 | ||
--- a/logs.c | ||
+++ b/logs.c | ||
@@ -128,7 +128,7 @@ static void log_display(const char *mesg) { | ||
// Display the message on the screen. | ||
if (log_win) { | ||
wclear(log_win); | ||
- mvwprintw(log_win, 0, 0, mesg); | ||
+ mvwprintw(log_win, 0, 0, "%s", mesg); | ||
wnoutrefresh(log_win); | ||
wrefresh(log_win); | ||
} |
12 changes: 12 additions & 0 deletions
12
pkgs/by-name/fr/freesweep/0003-remove-ac_func_malloc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/configure.ac b/configure.ac | ||
index ae08308..5262e56 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -32,7 +32,6 @@ AC_TYPE_SIZE_T | ||
AC_TYPE_UID_T | ||
|
||
# Checks for library functions. | ||
-AC_FUNC_MALLOC | ||
AC_CHECK_FUNCS([alarm getcwd memset mkdir setlocale strdup strncasecmp | ||
fileno flock lockf getopt getopt_long]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters