Externalize the declaration of dc_list. This is required in order to

get a ``generic'' kernel (``config kernel swap generic'') to compile.
This commit is contained in:
Joerg Wunsch 1996-06-12 15:10:30 +00:00
parent 56a94b026b
commit 6b1d48f79c
3 changed files with 6 additions and 5 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)swapgeneric.c 5.5 (Berkeley) 5/9/91
* $Id: swapgeneric.c,v 1.14 1995/12/04 16:47:43 phk Exp $
* $Id: swapgeneric.c,v 1.15 1995/12/06 09:04:42 peter Exp $
*/
#include <sys/param.h>
@ -83,7 +83,6 @@ extern int (*mountroot) __P((void));
extern int nfs_mountroot __P((void));
#endif
extern struct kern_devconf *dc_list;
void gets __P((char *));
struct genericconf {

View File

@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: kern_devconf.c,v 1.13 1995/12/14 08:31:17 phk Exp $
* $Id: kern_devconf.c,v 1.14 1996/01/31 18:05:19 gibbs Exp $
*/
/*
@ -38,7 +38,7 @@
#include <sys/sysctl.h>
#include <sys/devconf.h>
static struct kern_devconf *dc_list = 0;
struct kern_devconf *dc_list = 0;
static unsigned dc_lastnum = 0;
int

View File

@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: devconf.h,v 1.6 1995/04/13 20:37:51 wollman Exp $
* $Id: devconf.h,v 1.7 1995/11/20 12:42:38 phk Exp $
*/
/*
@ -129,6 +129,8 @@ struct kern_devconf {
enum dc_class kdc_class; /* filled in by driver */
};
extern struct kern_devconf *dc_list;
int dev_attach(struct kern_devconf *);
int dev_detach(struct kern_devconf *);
int dev_shutdownall(int);