Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jan 2015 07:17:51 +0000 (UTC)
From:      Allan Jude <allanjude@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r277109 - user/dchagin/lemul/usr.bin/kdump
Message-ID:  <201501130717.t0D7HpSO025726@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: allanjude (doc committer)
Date: Tue Jan 13 07:17:50 2015
New Revision: 277109
URL: https://svnweb.freebsd.org/changeset/base/277109

Log:
  Fix compile error in lemul branch (undefined reference to: nlinux32_syscalls, linux32_syscallnames)
  
  After the changes that moved the include of linux_syscalls.c inline, rather than via the Makefile, the same was not done for linux32_syscalls.c
  Apply the same treatment to linux32_syscallnames and nlinux32_syscalls as their 64bit counterparts got earlier
  
  Differential Revision:	https://reviews.freebsd.org/D1509
  Approved by:	dchagin
  Sponsored by:	ScaleEngine Inc.

Modified:
  user/dchagin/lemul/usr.bin/kdump/kdump.c

Modified: user/dchagin/lemul/usr.bin/kdump/kdump.c
==============================================================================
--- user/dchagin/lemul/usr.bin/kdump/kdump.c	Tue Jan 13 06:56:04 2015	(r277108)
+++ user/dchagin/lemul/usr.bin/kdump/kdump.c	Tue Jan 13 07:17:50 2015	(r277109)
@@ -173,8 +173,10 @@ static int bsd_to_linux_errno[ELAST + 1]
 #endif
 
 #if defined(__amd64__)
-extern char *linux32_syscallnames[];
-extern int nlinux32_syscalls;
+extern const char *linux32_syscallnames[];
+#include <linux32_syscalls.c>
+static int nlinux_syscalls = sizeof(linux32_syscallnames) / \
+				sizeof(linux32_syscallnames[0]);
 #endif
 
 struct proc_info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501130717.t0D7HpSO025726>