ports/x11/xscreensaver/files/patch-hacks_memscroller.c
Felix Palmen f984e47dd9 x11/xscreensaver: Adopt and clean up
Take maintainership as discussed with manu via email. Also clean up:

- Remove USES=desktop-file-utils again, the desktop files don't register
  any MIME types
- Add USES=shebangfix to fix the perl shebang, remove manual patching
- Remove MAKE_JOBS_UNSAFE, parallel builds seem to work just fine
- Format according to portclippy recommendations
- Update local patches

Approved by:	x11 (manu)
2023-10-22 18:04:02 +02:00

17 lines
551 B
C

--- hacks/memscroller.c.orig 2023-01-28 21:15:50 UTC
+++ hacks/memscroller.c
@@ -276,13 +276,6 @@ open_file (state *st)
from earlier days before the advent of virtual memory management."
-- sbrk(2) man page on BSD systems, as of 1995 or so.
*/
-#ifdef HAVE_SBRK
-# if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)) /* gcc >= 4.2 */
- /* Don't print "warning: 'sbrk' is deprecated". */
-# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-# endif
-#endif
-
static unsigned int
more_bits (state *st, scroller *sc)