Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 1 | From 891076c2cf4298b5d587545497f4831f0d21caa1 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 16 Sep 2022 20:04:43 -0700 |
| 4 | Subject: [PATCH 2/2] interactive-helper: Undefine _FORTIFY_SOURCE |
| 5 | |
| 6 | This ensures that it compiles when clang compiler is passing |
| 7 | -DFORTIFY_SOURCES=2 |
| 8 | |
| 9 | Upstream-Status: Submitted [https://salsa.debian.org/apt-team/apt/-/merge_requests/259] |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | test/interactive-helper/libnoprofile.c | 1 + |
| 13 | 1 file changed, 1 insertion(+) |
| 14 | |
| 15 | diff --git a/test/interactive-helper/libnoprofile.c b/test/interactive-helper/libnoprofile.c |
| 16 | index f11b898..b26ec2a 100644 |
| 17 | --- a/test/interactive-helper/libnoprofile.c |
| 18 | +++ b/test/interactive-helper/libnoprofile.c |
| 19 | @@ -1,4 +1,5 @@ |
| 20 | #define _GNU_SOURCE |
| 21 | +#undef _FORTIFY_SOURCE |
| 22 | #include <stdarg.h> |
| 23 | #include <stdlib.h> |
| 24 | #include <string.h> |
| 25 | -- |
| 26 | 2.37.3 |
| 27 | |