1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00

sysutils/usbutils: Fix build on 14-CURRENT

usbmisc.c:81:10: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
                result = getcwd(result, result_size);
                       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings and 1 error generated.

Obtained from:	delphij
Reference:	https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/pdf5b273c8e36_s83d5725005/logs/usbutils-0.91.log
This commit is contained in:
Po-Chuan Hsieh 2023-05-03 00:19:44 +08:00
parent f844e1c7df
commit c26b33c97a
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B

View File

@ -0,0 +1,10 @@
--- usbmisc.c.orig 2010-10-22 23:38:09 UTC
+++ usbmisc.c
@@ -29,6 +29,7 @@
#include <stdio.h>
#include <string.h>
+#include <unistd.h>
#include "usbmisc.h"