Print this page
6564 F_FLOCKW and F_FLOCK are undefined symbols in SPARC build

@@ -18,10 +18,11 @@
  *
  * CDDL HEADER END
  */
 
 /*
+ * Copyright 2016 Gary Mills
  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /*

@@ -132,10 +133,14 @@
 #define F_SETLKW        9       /* Set or Clear a record-lock (Blocking) */
 #ifndef _POSIX_SOURCE
 #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 */
 #define F_UNLCK         3       /* remove lock(s) */
 #ifndef _POSIX_SOURCE