diff options
author | Alexandre Chartre <Alexandre.Chartre@oracle.com> | 2010-03-31 17:47:02 -0700 |
---|---|---|
committer | Alexandre Chartre <Alexandre.Chartre@oracle.com> | 2010-03-31 17:47:02 -0700 |
commit | b63861bbdaea40d18f3f62a70cc3978d21a14013 (patch) | |
tree | 949682863741cfd5184cf5b02bc67f81e972f1e4 | |
parent | 8f2529de2d60d4fff8eb4d86f71b51584342934e (diff) | |
download | illumos-joyent-b63861bbdaea40d18f3f62a70cc3978d21a14013.tar.gz |
6939070 ldmad problem with largefiles (file > 2GB)
-rw-r--r-- | usr/src/cmd/ldmad/Makefile | 5 | ||||
-rw-r--r-- | usr/src/cmd/ldmad/ldmad.c | 5 |
2 files changed, 3 insertions, 7 deletions
diff --git a/usr/src/cmd/ldmad/Makefile b/usr/src/cmd/ldmad/Makefile index 49282b1739..2cb1906509 100644 --- a/usr/src/cmd/ldmad/Makefile +++ b/usr/src/cmd/ldmad/Makefile @@ -20,8 +20,7 @@ # # # -# Copyright 2010 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. +# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. # PROG= ldmad @@ -64,7 +63,7 @@ $(ROOTMANIFEST) := FILEMODE= 444 LDLIBS += -lds -ldladm -ldevinfo -lpri INCS += -I$(ROOT)/usr/platform/sun4v/include/sys INCS += -I$(SRC)/uts/sun4v -CPPFLAGS += $(INCS) +CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(INCS) C99MODE = $(C99_ENABLE) LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN diff --git a/usr/src/cmd/ldmad/ldmad.c b/usr/src/cmd/ldmad/ldmad.c index 0eabe5385d..d2cccb8ee9 100644 --- a/usr/src/cmd/ldmad/ldmad.c +++ b/usr/src/cmd/ldmad/ldmad.c @@ -20,8 +20,7 @@ */ /* - * Copyright 2010 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. */ /* @@ -45,10 +44,8 @@ */ #include <dirent.h> -#include <dlfcn.h> #include <errno.h> #include <fcntl.h> -#include <link.h> #include <libds.h> #include <libgen.h> #include <signal.h> |