Print this page
patch fix-lint

@@ -20,10 +20,11 @@
 #
 #
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 # Copyright 2012 Joshua M. Clulow <josh@sysmgr.org>
+# Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
 #
 
 #
 # The build process for libdisasm is sightly different from that used by other
 # libraries, because libdisasm must be built in two flavors - as a standalone

@@ -118,17 +119,11 @@
 # in order to enable this feature.  Conveniently, -D_REENTRANT does the same
 # thing.  As such, we null out $(DTS_ERRNO) to ensure that the standalone
 # doesn't get it.
 DTS_ERRNO=
 
-# We need to rename some standard functions so we can easily implement them 
-# in consumers.
-STAND_RENAMED_FUNCS= \
-        snprintf
-
-CPPFLAGS_standalone = -DDIS_STANDALONE $(STAND_RENAMED_FUNCS:%=-D%=mdb_%) \
-        -Dvsnprintf=mdb_iob_vsnprintf -I$(SRC)/cmd/mdb/common
+CPPFLAGS_standalone = -DDIS_STANDALONE -I$(SRC)/cmd/mdb/common
 CPPFLAGS_library = -D_REENTRANT
 CPPFLAGS +=     -I$(COMDIR) $(CPPFLAGS_$(CURTYPE))
 
 # For the x86 disassembler we have to include sources from usr/src/common
 CPPFLAGS += -I$(SRC)/common/dis/i386 -DDIS_TEXT