Skip to content

Commit

Permalink
Windows: libzfs: use zfs_strerror() in place of strerror()
Browse files Browse the repository at this point in the history
Signed-off-by: Jorgen Lundman <lundman@lundman.net>
  • Loading branch information
lundman committed Mar 13, 2024
1 parent 74c846c commit cab3d6c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions lib/libspl/include/os/windows/locale.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/

#ifndef LIBSPL_LOCALE_H
#define LIBSPL_LOCALE_H

#include_next <locale.h>

#endif
2 changes: 2 additions & 0 deletions lib/libspl/include/os/windows/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,6 @@ char *strsep(char **stringp, const char *delim);
char *strchrnul(const char *p, int ch);
char *strnstr(const char *s, const char *find, size_t slen);

#define strerror_l(X, Y) strerror(X)

#endif

0 comments on commit cab3d6c

Please sign in to comment.