[PATCH] Add #ifdef HAVE_SYS_PROC_H

Joel Brobecker brobecker@gnat.com
Tue Jul 16 12:18:00 GMT 2002


This is a followup on the following change that adds detection of
<sys/proc.h> at configure time:
http://sources.redhat.com/ml/gdb-patches/2002-07/msg00105.html

I have committed the following simple patch, tested on Solaris, which
has <sys/proc.h>. This is mainly in preparation for the interix port.

2002-07-16  Joel Brobecker  <brobecker@gnat.com>

        * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
        <sys/proc.h> when not available.

-- 
Joel
-------------- next part --------------
diff -c -3 -p -r1.12 proc-api.c
*** proc-api.c	6 Mar 2002 06:28:33 -0000	1.12
--- proc-api.c	16 Jul 2002 17:07:12 -0000
*************** Inc., 59 Temple Place - Suite 330, Bosto
*** 36,42 ****
--- 36,44 ----
  #include <stdio.h>
  #include <sys/types.h>
  #include <sys/procfs.h>
+ #ifdef HAVE_SYS_PROC_H
  #include <sys/proc.h>	/* for struct proc */
+ #endif
  #ifdef HAVE_SYS_USER_H
  #include <sys/user.h>	/* for struct user */
  #endif


More information about the Gdb-patches mailing list