diff options
-rw-r--r-- | libgphoto2_port/usb/libusb.c | 3 | ||||
-rw-r--r-- | libgphoto2_port/usbdiskdirect/linux.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libgphoto2_port/usb/libusb.c b/libgphoto2_port/usb/libusb.c index 29830a9f6..3eaea0051 100644 --- a/libgphoto2_port/usb/libusb.c +++ b/libgphoto2_port/usb/libusb.c @@ -19,6 +19,9 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ + +#define _BSD_SOURCE + #include "config.h" #include <gphoto2/gphoto2-port-library.h> diff --git a/libgphoto2_port/usbdiskdirect/linux.c b/libgphoto2_port/usbdiskdirect/linux.c index cd79ff93f..3b34ffcf0 100644 --- a/libgphoto2_port/usbdiskdirect/linux.c +++ b/libgphoto2_port/usbdiskdirect/linux.c @@ -16,6 +16,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define _BSD_SOURCE + #include "config.h" #include <gphoto2/gphoto2-port-library.h> |