Skip to content

Make micropython build on OpenBSD. #28

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

Merged
merged 4 commits into from
Jan 2, 2014
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ Additional components:
The Unix version
----------------

The "unix" part requires a standard Unix environment with gcc. It works
only for 64-bit machines due to a small piece of x86-64 assembler for
the exception handling.
The "unix" part requires a standard Unix environment with gcc and GNU make.
It works only for 64-bit machines due to a small piece of x86-64 assembler
for the exception handling.

To build:

Expand Down
4 changes: 4 additions & 0 deletions py/asmx64.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#include "misc.h"
#include "asmx64.h"

#if defined(__OpenBSD__)
#define MAP_ANONYMOUS MAP_ANON
#endif

/* all offsets are measured in multiples of 8 bytes */
#define WORD_SIZE (8)

Expand Down
2 changes: 1 addition & 1 deletion unix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ BUILD=build

CC = gcc
CFLAGS = -I. -I$(PYSRC) -Wall -Werror -ansi -std=gnu99 -Os -DUSE_READLINE #-DNDEBUG
LDFLAGS = -lm
LDFLAGS = -lm -ltermcap

SRC_C = \
main.c \
Expand Down
2 changes: 1 addition & 1 deletion unix/main.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>

#include "nlr.h"
#include "misc.h"
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy