qgroundcontrol: 4.4.2 -> 4.4.3 (#360956)
[NixPkgs.git] / pkgs / by-name / cc / cctools / 0001-Fix-build-issues-with-misc-redo_prebinding.c.patch
blob5908d030dbfd22c62a4b142868ccbb9f277950a8
1 From 55b2a5fcc38eb62f53e155bd8c741481690f1c73 Mon Sep 17 00:00:00 2001
2 From: Randy Eckenrode <randy@largeandhighquality.com>
3 Date: Wed, 10 Apr 2024 19:08:39 -0400
4 Subject: [PATCH 1/6] Fix build issues with misc/redo_prebinding.c
6 - Add missing headers; and
7 - Add missing arguments to `writeout`.
8 ---
9 misc/redo_prebinding.c | 7 ++++---
10 1 file changed, 4 insertions(+), 3 deletions(-)
12 diff --git a/misc/redo_prebinding.c b/misc/redo_prebinding.c
13 index a5a3c81..9d0f4c8 100644
14 --- a/misc/redo_prebinding.c
15 +++ b/misc/redo_prebinding.c
16 @@ -83,6 +83,7 @@
17 #include <mach-o/redo_prebinding.h>
18 #endif /* defined(LIBRARY_API) */
20 +#import <stdint.h>
21 #import <stdio.h>
22 #import <stdlib.h>
23 #import <string.h>
24 @@ -106,7 +107,7 @@
25 #import <stuff/hppa.h>
26 #import <stuff/execute.h>
27 #import <stuff/guess_short_name.h>
28 -//#import <stuff/seg_addr_table.h>
29 +#import <stuff/seg_addr_table.h>
30 #import <stuff/macosx_deployment_target.h>
32 #include <mach-o/dyld.h>
33 @@ -918,7 +919,7 @@ char *envp[])
34 if(write_to_stdout)
35 output_file = NULL;
36 writeout(archs, narchs, output_file, mode, TRUE, FALSE, FALSE,
37 - FALSE, NULL);
38 + FALSE, FALSE, NULL);
39 if(errors){
40 if(write_to_stdout == FALSE)
41 unlink(output_file);
42 @@ -928,7 +929,7 @@ char *envp[])
43 else{
44 output_file = makestr(input_file, ".redo_prebinding", NULL);
45 writeout(archs, narchs, output_file, mode, TRUE, FALSE, FALSE,
46 - FALSE, NULL);
47 + FALSE, FALSE, NULL);
48 if(errors){
49 unlink(output_file);
50 return(2);
51 --
52 2.45.2