Skip to content

Commit acd4ba0

Browse files
author
Mikael Ronström
committed
Fix ndbapi example programs to work on Mac OS X Yosemite
1 parent e8a68a9 commit acd4ba0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

storage/ndb/ndbapi-examples/ndbapi_async/ndbapi_async.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -55,6 +55,10 @@
5555

5656
#include <stdlib.h>
5757
#include <iostream> // Used for cout
58+
#include <config.h>
59+
#ifdef HAVE_SYS_SELECT_H
60+
#include <sys/select.h>
61+
#endif
5862

5963
/**
6064
* Helper sleep function

storage/ndb/ndbapi-examples/ndbapi_scan/ndbapi_scan.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/*
3-
Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
3+
Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
44
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by
@@ -78,6 +78,10 @@
7878
#include <stdio.h>
7979
#include <string.h>
8080
#include <stdlib.h>
81+
#include <config.h>
82+
#ifdef HAVE_SYS_SELECT_H
83+
#include <sys/select.h>
84+
#endif
8185

8286
/**
8387
* Helper sleep function

0 commit comments

Comments
 (0)