add some _BSD_SOURCE or _POSIX_C_SOURCE where needed

for strict -ansi or MacOS X build


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14245 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Marcus Meissner
2013-02-20 09:39:08 +00:00
parent cf9172fdcf
commit ce9fbe5d11
7 changed files with 15 additions and 0 deletions

View File

@@ -18,6 +18,8 @@
* Boston, MA 02111-1307, USA.
*/
#define _BSD_SOURCE
#include <config.h>
#include <stdlib.h>

View File

@@ -16,6 +16,9 @@
* 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 <string.h>

View File

@@ -39,6 +39,8 @@
*
*/
#define _BSD_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@@ -21,6 +21,8 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#define _POSIX_C_SOURCE 199309L
#include "config.h"
#include <ctype.h>

View File

@@ -20,6 +20,8 @@
*
****************************************************************************/
#define _BSD_SOURCE
#include "config.h"
#include <stdlib.h>

View File

@@ -12,6 +12,8 @@
*
****************************************************************************/
#define _BSD_SOURCE
#include "config.h"
#include <stdio.h>

View File

@@ -19,6 +19,8 @@
*
*/
#define _POSIX_C_SOURCE 199309L
#include "config.h"
#include <stdio.h>