Files
swift-mirror/stdlib/private/Glibc/module.map
Graham Batty c01f032512 Take more unnecessary things out of glibc modulemap.
This also takes out the last /usr/include/sys that isn't
present on ubuntu 14.04.

Swift SVN r26281
2015-03-18 22:43:54 +00:00

69 lines
1.6 KiB
Plaintext

//===--- module.map -------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
/// This is an incomplete modulemap that maps glibc's headers in a roughly
/// similar way to the Darwin SDK modulemap.
/// It's not named just Glibc so that it doesn't conflict in the event of a
/// future official glibc modulemap.
module SwiftGlibc [system] {
// C standard library
module C {
module errno {
header "/usr/include/errno.h"
export *
}
module signal {
header "/usr/include/signal.h"
export *
}
module stdio {
header "/usr/include/stdio.h"
export *
}
module stdlib {
header "/usr/include/stdlib.h"
export *
export stddef
}
module string {
header "/usr/include/string.h"
export *
}
}
// POSIX
module POSIX {
module pthread {
header "/usr/include/pthread.h"
export *
}
module spawn {
header "/usr/include/spawn.h"
export *
}
module fcntl {
header "/usr/include/fcntl.h"
export *
}
module wait {
header "/usr/include/wait.h"
export *
}
module unistd {
header "/usr/include/unistd.h"
export *
}
}
}