summaryrefslogtreecommitdiff
path: root/usr/src/lib/libofmt
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libofmt')
-rw-r--r--usr/src/lib/libofmt/Makefile.com1
-rw-r--r--usr/src/lib/libofmt/common/ofmt.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/lib/libofmt/Makefile.com b/usr/src/lib/libofmt/Makefile.com
index 1d27b92411..15cc384511 100644
--- a/usr/src/lib/libofmt/Makefile.com
+++ b/usr/src/lib/libofmt/Makefile.com
@@ -26,6 +26,7 @@ SRCDIR= ../common
LIBS= $(DYNLIB) $(LINTLIB)
SRCS= $(SRCDIR)/ofmt.c
+$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
LDLIBS += -lc
.KEEP_STATE:
diff --git a/usr/src/lib/libofmt/common/ofmt.h b/usr/src/lib/libofmt/common/ofmt.h
index f2cf1ac682..6048367a84 100644
--- a/usr/src/lib/libofmt/common/ofmt.h
+++ b/usr/src/lib/libofmt/common/ofmt.h
@@ -127,6 +127,8 @@
* caller), the function ofmt_update_winsize(handle) may be called.
*/
+#include <sys/types.h>
+
#ifdef __cplusplus
extern "C" {
#endif