diff options
Diffstat (limited to 'gcc/ada/adaint.c')
-rw-r--r-- | gcc/ada/adaint.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 3053c69..a9a5b68 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -2613,6 +2613,22 @@ __gnat_os_exit (int status) exit (status); } +int +__gnat_current_process_id (void) +{ +#if defined (__vxworks) || defined (__PikeOS__) + return -1; + +#elif defined (_WIN32) + + return (int)GetCurrentProcessId(); + +#else + + return (int)getpid(); +#endif +} + /* Locate file on path, that matches a predicate */ char * |