diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-11-13 15:44:26 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-11-13 15:44:26 +0200 |
commit | 66fd3e4a7b79f81ea66c87f7607fa463bc8def15 (patch) | |
tree | 00668142148941b69987ef1f715b3a57992328a3 /unix | |
parent | 3a6b3d230c60c3acfb212cec2bd80305232af42c (diff) | |
download | micropython-66fd3e4a7b79f81ea66c87f7607fa463bc8def15.tar.gz micropython-66fd3e4a7b79f81ea66c87f7607fa463bc8def15.zip |
unix: Use standard mphalport.h header.
This also unbreaks "make minimal".
Diffstat (limited to 'unix')
-rw-r--r-- | unix/mpconfigport.h | 2 | ||||
-rw-r--r-- | unix/mphalport.h (renamed from unix/unix_mphal.h) | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index a6bd98a727..e55eb2cec2 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -224,8 +224,6 @@ extern const struct _mp_obj_fun_builtin_t mp_builtin_open_obj; mp_obj_t keyboard_interrupt_obj; \ void *mmap_region_head; \ -#define MICROPY_MPHALPORT_H "unix_mphal.h" - // We need to provide a declaration/definition of alloca() #ifdef __FreeBSD__ #include <stdlib.h> diff --git a/unix/unix_mphal.h b/unix/mphalport.h index 8961722db7..98bbadbda5 100644 --- a/unix/unix_mphal.h +++ b/unix/mphalport.h @@ -23,6 +23,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include <unistd.h> #ifndef CHAR_CTRL_C #define CHAR_CTRL_C (3) |