[OB,PATH] Provide get_shell declaration in procfs.c

Message ID yddh8h514hg.fsf@CeBiTec.Uni-Bielefeld.DE
State New, archived
Headers

Commit Message

Rainer Orth Oct. 29, 2018, 9:34 a.m. UTC
  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

While the Solaris buildbots noticed this, for some reason no mail was
ever sent by the buildmaster.

The following patch fixes this.  Tested on amd64-pc-solaris2.11,
installed on master.

	Rainer
  

Patch

# HG changeset patch
# Parent  3d302cff9ea7d827e06f221af07867dffe829434
Provide get_shell declaration in procfs.c

diff --git a/gdb/procfs.c b/gdb/procfs.c
--- 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