tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Fwd: [PATCH] freebsd support update proposal


From: Herman ten Brugge
Subject: Re: [Tinycc-devel] Fwd: [PATCH] freebsd support update proposal
Date: Tue, 8 Feb 2022 19:02:46 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 2/7/22 10:54, grischka wrote:
David CARLIER wrote:
Hi if nobody objects, I may apply the last aforementioned patch
sometime next week.

Since you asked:

--- a/tests/tests2/46_grep.c
+++ b/tests/tests2/46_grep.c
@@ -14,6 +14,9 @@
  * included and reference made to  the  fact  that  reproduction
  * privileges were granted by DECUS.
  */
+#if defined(__FreeBSD__)
+#include <sys/cdefs.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>    // tolower()

- what is this (nobody will know without a comment)
- sys/cdefs.h is not that a user file should include
- 46_grep.c looks really "innocent" enough that it should compile
  OOTB on any C and platform
- in general, when tests fail, we want the problem be fixed, not the test

Maybe you can find a better solution, or maybe someone else can...

-- gr

I checked the stdio.h file on freebsd 12.2 and 13.0 and see:

.....
#ifndef _STDIO_H_
#define _STDIO_H_

#include <sys/cdefs.h>
.....

So the file is included in stdio.h for freebsd.
What version of freebsd are you using?

    Herman

PS:
I just added a fix for freebsd 13.0 in mob.



Kind regards.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]