diff options
| author | Gary Mills <gary_mills@fastmail.fm> | 2016-02-01 14:28:45 -0600 |
|---|---|---|
| committer | Robert Mustacchi <rm@joyent.com> | 2016-02-05 12:22:07 -0800 |
| commit | f3b6506e5de00944c5a877f02a83b5e850f37ef5 (patch) | |
| tree | 36308cf55820a6da298db212b5dea25363633092 /usr/src | |
| parent | 238d8f47d92b5b99a374f9639e0704420d3aef77 (diff) | |
| download | illumos-joyent-f3b6506e5de00944c5a877f02a83b5e850f37ef5.tar.gz | |
6564 F_FLOCKW and F_FLOCK are undefined symbols in SPARC build
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/lib/libbc/inc/include/sys/fcntlcom.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/src/lib/libbc/inc/include/sys/fcntlcom.h b/usr/src/lib/libbc/inc/include/sys/fcntlcom.h index 8a843c900f..8caf65e2a3 100644 --- a/usr/src/lib/libbc/inc/include/sys/fcntlcom.h +++ b/usr/src/lib/libbc/inc/include/sys/fcntlcom.h @@ -20,6 +20,7 @@ */ /* + * Copyright 2016 Gary Mills * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -134,6 +135,10 @@ extern "C" { #define F_CNVT 12 /* Convert a fhandle to an open fd */ #endif /* !_POSIX_SOURCE */ +/* Needed by flock.c */ +#define F_FLOCKW F_SETLKW +#define F_FLOCK F_SETLK + /* fcntl(2) flags (l_type field of flock structure) */ #define F_RDLCK 1 /* read lock */ #define F_WRLCK 2 /* write lock */ |
