NetBSD-Bugs archive

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

misc/46040: Errors in spawn.h



>Number:         46040
>Category:       misc
>Synopsis:       Errors in spawn.h
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 17 15:45:00 +0000 2012
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Problems with spawn.h.

Missing __BEGIN_DECELS.
Error building tools llvm/Clang in [__restrict]
 at line 43 and 46 in spawn.h.

Build with patch is working.
>How-To-Repeat:

>Fix:
diff -u -p -r1.1 spawn.h
--- include/spawn.h     11 Feb 2012 23:31:24 -0000      1.1
+++ include/spawn.h     17 Feb 2012 15:28:26 -0000
@@ -33,16 +33,17 @@
 
 #include <sys/spawn.h>
 
+__BEGIN_DECLS
 /*
  * Spawn routines
  *
  */
 int posix_spawn(pid_t * __restrict, const char * __restrict,
     const posix_spawn_file_actions_t *, const posix_spawnattr_t * __restrict,
-    char * const [__restrict], char * const [__restrict]);
+    char * const [/*__restrict*/], char * const [/*__restrict*/]);
 int posix_spawnp(pid_t * __restrict, const char * __restrict,
     const posix_spawn_file_actions_t *, const posix_spawnattr_t * __restrict,
-    char * const [__restrict], char * const [__restrict]);
+    char * const [/*__restrict*/], char * const [/*__restrict*/]);
 
 /*
  * File descriptor actions



Home | Main Index | Thread Index | Old Index