public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/44002] need to #include unistd.h for pid_t on alpha-dec-vms
       [not found] <bug-44002-4@http.gcc.gnu.org/bugzilla/>
@ 2024-03-31 22:10 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: pinskia at gcc dot gnu.org @ 2024-03-31 22:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44002

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2024-03-31
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---

POSIX defines pid_t in sys/types.h
(https://pubs.opengroup.org/onlinepubs/009604499/basedefs/sys/types.h.html)


But the way AC_TYPE_PID_T works, is pid_t if incldued in the standard
ac_includes don't define it. 

standard includes in the version of autoconf that is currently used are:
```
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
....
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"
```

Looks like vms defines it in unistd.h from what I could find on the internet.

So confirmed. Though I am not 100% sure if building for VMS is still supported.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-31 22:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-44002-4@http.gcc.gnu.org/bugzilla/>
2024-03-31 22:10 ` [Bug target/44002] need to #include unistd.h for pid_t on alpha-dec-vms pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).