Don't define the module glue if building as an LKM, this happens to have

a same symbol name as the LKM glue.
This commit is contained in:
Peter Wemm 1998-11-07 04:34:02 +00:00
parent c412a7ae32
commit 5c23153cac

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: ibcs2_sysvec.c,v 1.8 1998/09/14 05:36:47 jdp Exp $
* $Id: ibcs2_sysvec.c,v 1.9 1998/11/06 16:00:47 peter Exp $
*/
#include <sys/param.h>
@ -61,6 +61,7 @@ struct sysentvec ibcs2_svr3_sysvec = {
NULL /* we don't have a COFF coredump function */
};
#ifndef LKM
/*
* Create an "ibcs2" module that does nothing but allow checking for
* the presence of the subsystem.
@ -77,3 +78,4 @@ moduledata_t ibcs2_mod = {
0
};
DECLARE_MODULE(ibcs2, ibcs2_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);
#endif