Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on Mac OS X #953

Merged
merged 2 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion camlibs/digita/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>

#include "libgphoto2/gphoto2-endian.h"
#include "digita.h"
Expand Down Expand Up @@ -336,4 +337,3 @@ int digita_serial_open(CameraPrivateLibrary *dev, Camera *camera)

return negotiated ? 0 : -1;
}

1 change: 1 addition & 0 deletions camlibs/directory/directory.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
# include <sys/mount.h>
#endif
#include <fcntl.h>
#include <unistd.h>

/* will happen only on Win32 */
#ifndef HAVE_LSTAT
Expand Down
6 changes: 1 addition & 5 deletions camlibs/enigma13/enigma13.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include <gphoto2/gphoto2-library.h>
#include <gphoto2/gphoto2-port-log.h>
Expand Down Expand Up @@ -414,8 +415,3 @@ camera_init (Camera *camera, GPContext *context)


}





1 change: 1 addition & 0 deletions camlibs/jd11/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include <gphoto2/gphoto2.h>
#include <gphoto2/gphoto2-port.h>
Expand Down
1 change: 1 addition & 0 deletions camlibs/jl2005c/jl2005c.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <fcntl.h>
#include <string.h>
#include <math.h>
#include <unistd.h>

#include <gphoto2/gphoto2.h>
#include <gphoto2/gphoto2-port.h>
Expand Down
2 changes: 1 addition & 1 deletion camlibs/kodak/dc120/dc120.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>

#include <gphoto2/gphoto2.h>
#include <gphoto2/gphoto2-port.h>
Expand Down Expand Up @@ -434,4 +435,3 @@ int camera_init (Camera *camera, GPContext *context) {

return (GP_OK);
}

2 changes: 2 additions & 0 deletions camlibs/kodak/dc120/library.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>

#include <gphoto2/gphoto2.h>

#include "libgphoto2/i18n.h"
Expand Down
2 changes: 2 additions & 0 deletions camlibs/kodak/dc210/library.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include <gphoto2/gphoto2.h>

#include "libgphoto2/i18n.h"
Expand Down
1 change: 1 addition & 0 deletions camlibs/mars/mars.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <fcntl.h>
#include <string.h>
#include <math.h>
#include <unistd.h>

#include <libgphoto2/gamma.h>

Expand Down
1 change: 1 addition & 0 deletions camlibs/mustek/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

#include <gphoto2/gphoto2-library.h>
#include <gphoto2/gphoto2-result.h>
#include <unistd.h>


#include "io.h"
Expand Down
1 change: 1 addition & 0 deletions camlibs/mustek/rs232.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "io.h"

#include <fcntl.h>
#include <unistd.h>
#include <sys/time.h>


Expand Down
1 change: 1 addition & 0 deletions camlibs/mustek/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
Implemenation of the USB Version of ExecuteCommand
*/
#include <string.h>
#include <unistd.h>

#include <gphoto2/gphoto2-library.h>
#include <gphoto2/gphoto2-result.h>
Expand Down
3 changes: 1 addition & 2 deletions camlibs/panasonic/coolshot/library.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <string.h>
#include <gphoto2/gphoto2.h>
#include <time.h>
#include <unistd.h>

#include "libgphoto2/i18n.h"

Expand Down Expand Up @@ -726,5 +727,3 @@ int coolshot_build_thumbnail (char *data, int *size)

return( GP_OK );
}


1 change: 1 addition & 0 deletions camlibs/polaroid/pdc320.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>

#include <gphoto2/gphoto2-library.h>
#include <gphoto2/gphoto2-port-log.h>
Expand Down
1 change: 1 addition & 0 deletions camlibs/ptp2/fujiptpip.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#ifdef HAVE_SYS_SELECT_H
Expand Down
1 change: 1 addition & 0 deletions camlibs/ptp2/ptpip.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#ifdef HAVE_SYS_SELECT_H
Expand Down
2 changes: 1 addition & 1 deletion camlibs/quicktake1x0/qtk-helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int qtk_ppm_size(int width, int height) {
return len;
}

unsigned char getbithuff (int nbits, unsigned char **raw, ushort *huff)
unsigned char getbithuff (int nbits, unsigned char **raw, unsigned short *huff)
{
static unsigned bitbuf = 0;
static int vbits = 0;
Expand Down
1 change: 1 addition & 0 deletions camlibs/quicktake1x0/quicktake1x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>

#include <gphoto2/gphoto2-library.h>

Expand Down
1 change: 1 addition & 0 deletions camlibs/sonydscf55/sony.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include <gphoto2/gphoto2.h>
#include "sony.h"
Expand Down
1 change: 1 addition & 0 deletions camlibs/spca50x/spca50x.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>

#include <gphoto2/gphoto2.h>
#include "libgphoto2/gphoto2-endian.h"
Expand Down
2 changes: 1 addition & 1 deletion camlibs/toshiba/pdrm11/pdrm11.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include <string.h>
#include <stdlib.h>
#include <unistd.h>

#include <gphoto2/gphoto2.h>
#include "libgphoto2/gphoto2-endian.h"
Expand Down Expand Up @@ -252,4 +253,3 @@ int pdrm11_delete_file(GPPort *port, int picNum)

return(GP_OK);
}

Loading