Skip to content

Instantly share code, notes, and snippets.

@dyoo
Created December 3, 2012 22:05
Show Gist options
  • Save dyoo/4198537 to your computer and use it in GitHub Desktop.
Save dyoo/4198537 to your computer and use it in GitHub Desktop.
errno hack
#lang racket/base
(require ffi/unsafe)
(define (get-errno)
(get-ffi-obj "errno" (ffi-lib #f) _int))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment