Differential D16571 Diff 48320 graphics/mesa-dri/files/patch-src_intel_tools_aubinator__error__decode.c
Changeset View
Changeset View
Standalone View
Standalone View
graphics/mesa-dri/files/patch-src_intel_tools_aubinator__error__decode.c
| # expose getline in FreeBSD's stdio.h | # expose getline in FreeBSD's stdio.h | ||||
| # | # | ||||
| --- src/intel/tools/aubinator_error_decode.c.orig 2017-05-10 14:13:57 UTC | --- src/intel/tools/aubinator_error_decode.c.orig 2017-05-10 14:13:57 UTC | ||||
| +++ src/intel/tools/aubinator_error_decode.c | +++ src/intel/tools/aubinator_error_decode.c | ||||
| @@ -22,6 +22,9 @@ | @@ -22,6 +22,9 @@ | ||||
| * | * | ||||
| */ | */ | ||||
| +#ifdef __FreeBSD__ | +#if defined(__FreeBSD__) && __FreeBSD__ < 12 | ||||
| +#define _WITH_GETLINE | +#define _WITH_GETLINE | ||||
| +#endif | +#endif | ||||
| #include <stdbool.h> | #include <stdbool.h> | ||||
| #include <stdio.h> | #include <stdio.h> | ||||
| #include <stdlib.h> | #include <stdlib.h> | ||||