Compactifications of the real line and the real half-line