mirror of
https://git.yoctoproject.org/poky
synced 2026-02-23 01:49:40 +01:00
The patch tool will apply patches by default with "fuzz", which is where if the hunk context isn't present but what is there is close enough, it will force the patch in. Whilst this is useful when there's just whitespace changes, when applied to source it is possible for a patch applied with fuzz to produce broken code which still compiles (see #10450). This is obviously bad. We'd like to eventually have do_patch() rejecting any fuzz on these grounds. For that to be realistic the existing patches with fuzz need to be rebased and reviewed. (From OE-Core rev: 53f2bbba35c63afa14c5fcb33b83b0ee061840ca) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
60 lines
1.5 KiB
Diff
60 lines
1.5 KiB
Diff
From 42325faa88d64cce799977d611b2792beb154643 Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
Date: Mon, 14 Sep 2015 08:36:59 +0000
|
|
Subject: [PATCH] Include needed headers explicitly
|
|
|
|
on glibc these headers get pulled in indirectly via other .h files
|
|
but right fix is to include them directly when used
|
|
|
|
fixes
|
|
|
|
error: use of undeclared identifier 'PATH_MAX'
|
|
error: called object type 'unsigned int' is not a function or function pointer
|
|
dm_major = major(aux.st_rdev);
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
---
|
|
Upstream-Status: Pending
|
|
|
|
common.c | 1 +
|
|
ioconf.c | 1 +
|
|
sa_common.c | 1 +
|
|
3 files changed, 3 insertions(+)
|
|
|
|
Index: sysstat-11.7.1/common.c
|
|
===================================================================
|
|
--- sysstat-11.7.1.orig/common.c
|
|
+++ sysstat-11.7.1/common.c
|
|
@@ -20,6 +20,7 @@
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
+#include <limits.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
Index: sysstat-11.7.1/ioconf.c
|
|
===================================================================
|
|
--- sysstat-11.7.1.orig/ioconf.c
|
|
+++ sysstat-11.7.1/ioconf.c
|
|
@@ -27,6 +27,7 @@
|
|
#include <errno.h>
|
|
#include <dirent.h>
|
|
#include <sys/stat.h>
|
|
+#include <sys/types.h>
|
|
|
|
#include "ioconf.h"
|
|
#include "common.h"
|
|
Index: sysstat-11.7.1/sa_common.c
|
|
===================================================================
|
|
--- sysstat-11.7.1.orig/sa_common.c
|
|
+++ sysstat-11.7.1/sa_common.c
|
|
@@ -20,6 +20,7 @@
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
+#include <limits.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|