diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2018-10-29 10:28:40 +0100 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2018-10-29 10:28:40 +0100 |
commit | 30a7953dbfe3659c7bdc5b9b4c96f46903cb0254 (patch) | |
tree | cdfc60280d5ae845877f52eafd4a57a5739c38b8 /gdb/procfs.c | |
parent | 727a29badd95a68d08b86fec0b98702ce756c660 (diff) | |
download | gdb-30a7953dbfe3659c7bdc5b9b4c96f46903cb0254.zip gdb-30a7953dbfe3659c7bdc5b9b4c96f46903cb0254.tar.gz gdb-30a7953dbfe3659c7bdc5b9b4c96f46903cb0254.tar.bz2 |
Provide get_shell declaration in procfs.c
The Solaris build is currently broken:
/vol/src/gnu/gdb/hg/master/dist/gdb/procfs.c: In member function ‘virtual void procfs_target::create_inferior(const char*, const string&, char**, int)’:
/vol/src/gnu/gdb/hg/master/dist/gdb/procfs.c:3038:28: error: ‘get_shell’ was not declared in this scope
const char *shell_file = get_shell ();
^~~~~~~~~
/vol/src/gnu/gdb/hg/master/dist/gdb/procfs.c:3038:28: note: suggested alternative: ‘getusershell’
const char *shell_file = get_shell ();
^~~~~~~~~
getusershell
The following patch fixes this. Tested on amd64-pc-solaris2.11.
2018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* procfs.c: Include common/pathstuff.h.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index ca381a7..0d8f9df 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -47,6 +47,7 @@ #include "procfs.h" #include "observable.h" #include "common/scoped_fd.h" +#include "common/pathstuff.h" /* This module provides the interface between GDB and the /proc file system, which is used on many versions of Unix |