diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2021-09-12 18:12:47 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2021-09-12 18:12:47 +0000 |
commit | 6aa4d33cce95c534665f3f8e057f13a69ab10835 (patch) | |
tree | cfb6f1e6a17b8751adf037ab86a1e50594e79fb4 /lib/sg_pt_freebsd.c | |
parent | 15a477c9f6730cd98e40bbdbb0511cdf3a3c4319 (diff) | |
download | sg3_utils-6aa4d33cce95c534665f3f8e057f13a69ab10835.tar.gz |
sg_dd: srand48_r() and mrand48_r() are GNU libc specific, put conditional in so non-reentrant version used otherwise
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@913 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'lib/sg_pt_freebsd.c')
-rw-r--r-- | lib/sg_pt_freebsd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sg_pt_freebsd.c b/lib/sg_pt_freebsd.c index ad25e8ca..47eaf7c4 100644 --- a/lib/sg_pt_freebsd.c +++ b/lib/sg_pt_freebsd.c @@ -7,7 +7,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ -/* sg_pt_freebsd version 1.45 20210731 */ +/* sg_pt_freebsd version 1.46 20210912 */ #include <stdio.h> #include <stdlib.h> @@ -318,9 +318,12 @@ scsi_pt_open_flags(const char * device_name, int oflags, int vb) case PROTO_ATAPI: case PROTO_SATAPM: case PROTO_SEMB: /* SATA Enclosure Management bridge */ - if (vb) + if (vb) { pr2ws("%s: ATA and derivative devices not supported\n", __func__); + if (vb > 2) + pr2ws(" ... FreeBSD doesn't have a SAT in its kernel\n"); + } ret = -EINVAL; break; #if __FreeBSD_version > 1200058 |