mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 06:10:30 -04:00
OSVERSION was used without OPSYS, but it turns out that DragonFly needs a dedicated extra patch due to having a different name for the cdefs macro. Approved by: blankets (restore working DF port/non-invasive DF support)
24 lines
987 B
Text
24 lines
987 B
Text
--- lib/dgif_lib.c.orig 2016-01-07 10:44:44 UTC
|
|
+++ lib/dgif_lib.c
|
|
@@ -41,6 +41,9 @@ static int DGifDecompressInput(GifFileTy
|
|
static int DGifBufferedInput(GifFileType *GifFile, GifByteType *Buf,
|
|
GifByteType *NextByte);
|
|
|
|
+extern void *
|
|
+reallocarray(void *optr, size_t nmemb, size_t size) __dso_hidden;
|
|
+
|
|
/******************************************************************************
|
|
Open a new GIF file for read, given by its name.
|
|
Returns dynamically allocated GifFileType pointer which serves as the GIF
|
|
--- lib/gifalloc.c.orig 2015-07-13 04:05:46 UTC
|
|
+++ lib/gifalloc.c
|
|
@@ -12,6 +12,9 @@
|
|
|
|
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
|
|
|
|
+extern void *
|
|
+reallocarray(void *optr, size_t nmemb, size_t size) __dso_hidden;
|
|
+
|
|
/******************************************************************************
|
|
Miscellaneous utility functions
|
|
******************************************************************************/
|